| Problem | smurf |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-10-27 15:24:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
smurf.cpp: In function ‘int main()’:
smurf.cpp:20:4: error: ‘smufs’ was not declared in this scope; did you mean ‘smurfs’?
20 | smufs.push_front(inp);
| ^~~~~
| smurfs
smurf.cpp:25:52: error: no matching function for call to ‘reverse(std::deque<int>::iterator, <unresolved overloaded function type>)’
25 | if (n % 2 == 1) reverse(smurfs.begin(), smurfs.end);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from smurf.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:1186:5: note: candidate: ‘void std::reverse(_BIter, _BIter) [with _BIter = std::_Deque_iterator<int, int&, int*>]’
1186 | reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
| ^~~~~~~
/usr/include/c++/9/bits/stl_algo.h:1186:68: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘std::_Dequ