fork(1) download
  1. #include <algorithm>
  2. #include <cctype>
  3. #include <string>
  4.  
  5. bool has_any_digits(const std::string& s)
  6. {
  7. return std::any_of(s.begin(), s.end(), std::isdigit);
  8. }
  9.  
  10. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'bool has_any_digits(const std::string&)':
prog.cpp:7:56: error: no matching function for call to 'any_of(std::basic_string<char>::const_iterator, std::basic_string<char>::const_iterator, <unresolved overloaded function type>)'
stdout
Standard output is empty