Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    string s; cin >> s;
    bool f = true;
    if(s.length() < 6) f = false;
    if(any(begin(s), end(s), [](char c) { return isdigit(c); }) == false) f = false;
    if(any(begin(s), end(s), [](char c) { return isupper(c); }) == false) f = false;
    if(any(begin(s), end(s), [](char c) { return islower(c); }) == false) f = false;
    cout << (f ? "VALID" : "INVALID") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:63: error: no matching function for call to 'std::any::any(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, main()::<lambda(char)>)'
    8 |     if(any(begin(s), end(s), [](char c) { return isdigit(c); }) == false) f = false;
      |                                                               ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:77,
                 from a.cc:1:
/usr/include/c++/14/any:215:7: note: candidate: 'template<class _Tp, class _Up, class ... _Args, class _VTp, class _Mgr, typename std::any::__any_constructible<bool, _VTp, std::initializer_list<_Value>&, _Args&& ...>::type <anonymous> > std::any::any(std::in_place_type_t<_Tp>, std::initializer_list<_Value>, _Args&& ...)'
  215 |       any(in_place_type_t<_Tp>, initializer_list<_Up> __il, _Args&&... __args)
      |       ^~~
/usr/include/c++/14/any:215:7: note:   template argument deduction/substitution failed:
a.cc:8:63: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::in_place_type_t<_Tp>'
    8 |     if(any(begin(s), end(s), [](char c) { return isdigit(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:202:7: note: candidate: 'template<class _Tp, class ... _Args, class _VTp, class _Mgr, typename std::any::__any_constructible<bool, _VTp, _Args&& ...>::type <anonymous> > std::any::any(std::in_place_type_t<_Tp>, _Args&& ...)'
  202 |       any(in_place_type_t<_Tp>, _Args&&... __args)
      |       ^~~
/usr/include/c++/14/any:202:7: note:   template argument deduction/substitution failed:
a.cc:8:63: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::in_place_type_t<_Tp>'
    8 |     if(any(begin(s), end(s), [](char c) { return isdigit(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:191:7: note: candidate: 'template<class _Tp, class _VTp, class _Mgr, typename std::enable_if<(is_copy_constructible_v<_VTp> && (! __is_in_place_type_v<_VTp>)), bool>::type <anonymous> > std::any::any(_Tp&&)'
  191 |       any(_Tp&& __value)
      |       ^~~
/usr/include/c++/14/any:191:7: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:174:5: note: candidate: 'std::any::any(std::any&&)'
  174 |     any(any&& __other) noexcept
      |     ^~~
/usr/include/c++/14/any:174:5: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:157:5: note: candidate: 'std::any::any(const std::any&)'
  157 |     any(const any& __other)
      |     ^~~
/usr/include/c++/14/any:157:5: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:154:15: note: candidate: 'constexpr std::any::any()'
  154 |     constexpr any() noexcept : _M_manager(nullptr) { }
      |               ^~~
/usr/include/c++/14/any:154:15: note:   candidate expects 0 arguments, 3 provided
a.cc:9:63: error: no matching function for call to 'std::any::any(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, main()::<lambda(char)>)'
    9 |     if(any(begin(s), end(s), [](char c) { return isupper(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:215:7: note: candidate: 'template<class _Tp, class _Up, class ... _Args, class _VTp, class _Mgr, typename std::any::__any_constructible<bool, _VTp, std::initializer_list<_Value>&, _Args&& ...>::type <anonymous> > std::any::any(std::in_place_type_t<_Tp>, std::initializer_list<_Value>, _Args&& ...)'
  215 |       any(in_place_type_t<_Tp>, initializer_list<_Up> __il, _Args&&... __args)
      |       ^~~
/usr/include/c++/14/any:215:7: note:   template argument deduction/substitution failed:
a.cc:9:63: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::in_place_type_t<_Tp>'
    9 |     if(any(begin(s), end(s), [](char c) { return isupper(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:202:7: note: candidate: 'template<class _Tp, class ... _Args, class _VTp, class _Mgr, typename std::any::__any_constructible<bool, _VTp, _Args&& ...>::type <anonymous> > std::any::any(std::in_place_type_t<_Tp>, _Args&& ...)'
  202 |       any(in_place_type_t<_Tp>, _Args&&... __args)
      |       ^~~
/usr/include/c++/14/any:202:7: note:   template argument deduction/substitution failed:
a.cc:9:63: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::in_place_type_t<_Tp>'
    9 |     if(any(begin(s), end(s), [](char c) { return isupper(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:191:7: note: candidate: 'template<class _Tp, class _VTp, class _Mgr, typename std::enable_if<(is_copy_constructible_v<_VTp> && (! __is_in_place_type_v<_VTp>)), bool>::type <anonymous> > std::any::any(_Tp&&)'
  191 |       any(_Tp&& __value)
      |       ^~~
/usr/include/c++/14/any:191:7: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:174:5: note: candidate: 'std::any::any(std::any&&)'
  174 |     any(any&& __other) noexcept
      |     ^~~
/usr/include/c++/14/any:174:5: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:157:5: note: candidate: 'std::any::any(const std::any&)'
  157 |     any(const any& __other)
      |     ^~~
/usr/include/c++/14/any:157:5: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:154:15: note: candidate: 'constexpr std::any::any()'
  154 |     constexpr any() noexcept : _M_manager(nullptr) { }
      |               ^~~
/usr/include/c++/14/any:154:15: note:   candidate expects 0 arguments, 3 provided
a.cc:10:63: error: no matching function for call to 'std::any::any(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, main()::<lambda(char)>)'
   10 |     if(any(begin(s), end(s), [](char c) { return islower(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:215:7: note: candidate: 'template<class _Tp, class _Up, class ... _Args, class _VTp, class _Mgr, typename std::any::__any_constructible<bool, _VTp, std::initializer_list<_Value>&, _Args&& ...>::type <anonymous> > std::any::any(std::in_place_type_t<_Tp>, std::initializer_list<_Value>, _Args&& ...)'
  215 |       any(in_place_type_t<_Tp>, initializer_list<_Up> __il, _Args&&... __args)
      |       ^~~
/usr/include/c++/14/any:215:7: note:   template argument deduction/substitution failed:
a.cc:10:63: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::in_place_type_t<_Tp>'
   10 |     if(any(begin(s), end(s), [](char c) { return islower(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:202:7: note: candidate: 'template<class _Tp, class ... _Args, class _VTp, class _Mgr, typename std::any::__any_constructible<bool, _VTp, _Args&& ...>::type <anonymous> > std::any::any(std::in_place_type_t<_Tp>, _Args&& ...)'
  202 |       any(in_place_type_t<_Tp>, _Args&&... __args)
      |       ^~~
/usr/include/c++/14/any:202:7: note:   template argument deduction/substitution failed:
a.cc:10:63: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::in_place_type_t<_Tp>'
   10 |     if(any(begin(s), end(s), [](char c) { return islower(c); }) == false) f = false;
      |                                                               ^
/usr/include/c++/14/any:191:7: note: candidate: 'template<class _Tp, class _VTp, class _Mgr, typename std::enable_if<(is_copy_constructible_v<_VTp> && (! __is_in_place_type_v<_VTp>)), bool>::type <anonymous> > std::any::any(_Tp&&)'
  191 |       any(_Tp&& __value)
      |       ^~~
/usr/include/c++/14/any:191:7: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:174:5: note: candidate: 'std::any::any(std::any&&)'
  174 |     any(any&& __other) noexcept
      |     ^~~
/usr/include/c++/14/any:174:5: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:157:5: note: candidate: 'std::any::any(const std::any&)'
  157 |     any(const any& __other)
      |     ^~~
/usr/include/c++/14/any:157:5: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/any:154:15: note: candidate: 'constexpr std::any::any()'
  154 |     constexpr any() noexcept : _M_manager(nullptr) { }
      |               ^~~
/usr/include/c++/14/any:154:15: note:   candidate expects 0 arguments, 3 provided