| Problem | palindromicfizzbuzz |
|---|---|
| User | DaPeter |
| Submission Time | 2026-01-07 08:31:50 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
palindromicfizzbuzz.cpp: In function ‘int main()’:
palindromicfizzbuzz.cpp:8:29: error: no matching function for call to ‘reverse(std::string&)’
8 | if(to_string(i)==reverse(x)) cout<<"PALINDROME!";
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from palindromicfizzbuzz.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:1186:5: note: candidate: ‘template<class _BIter> void std::reverse(_BIter, _BIter)’
1186 | reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
| ^~~~~~~
/usr/include/c++/9/bits/stl_algo.h:1186:5: note: template argument deduction/substitution failed:
palindromicfizzbuzz.cpp:8:29: note: candidate expects 2 arguments, 1 provided
8 | if(to_string(i)==reverse(x)) cout<<"PALINDROME!";
| ^
In file included