#include <algorithm>#include <cctype>#include <string> bool has_any_digits(const std::string& s){ return std::any_of(s.begin(), s.end(), std::isdigit);} int main() {}
Standard input is empty
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>)'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!