0_0_37769719_11875.cpp: In function 'void solve()':
0_0_37769719_11875.cpp:25:30: error: no matching function for call to 'isdigit(std::string&)'
for(auto x : s) if(isdigit(s)) cnt++;
^
0_0_37769719_11875.cpp:25:30: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cctype:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:35,
from 0_0_37769719_11875.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/ctype.h:108:23: note: int isdigit(int)
_CRTIMP int __cdecl isdigit(int _C);
^
GCC4.9.2/x86_64-w64-mingw32/include/ctype.h:108:23: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_ios.h:37:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:44,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37769719_11875.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_facets.h:2566:5: note: template<class _CharT> bool std::isdigit(_CharT, const std::locale&)
isdigit(_CharT __c, const locale& __loc)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_facets.h:2566:5: note: template argument deduction/substitution failed:
0_0_37769719_11875.cpp:25:30: note: candidate expects 2 arguments, 1 provided
for(auto x : s) if(isdigit(s)) cnt++;
^
|