Problem | palindromicfizzbuzz |
---|---|
User | G |
Submission Time | 2024-02-19 22:38:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
palindromicfizzbuzz.cpp: In function ‘bool pal(int)’:
palindromicfizzbuzz.cpp:5:17: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’ in initialization
5 | int z=to_string(y);
| ~~~~~~~~~^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
palindromicfizzbuzz.cpp:6:15: error: no matching function for call to ‘size(int&)’
6 | int j =size(z)-1
| ^
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from palindromicfizzbuzz.cpp:1:
/usr/include/c++/9/bits/range_access.h:242:5: note: candidate: ‘template<