| Problem | potatosalad |
|---|---|
| User | howdoicode |
| Submission Time | 2026-03-11 17:31:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:16:20: error: no matching function for call to ‘reverse(std::vector<int>&)’
16 | reverse(potatas);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from potatosalad.cpp:4:
/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:
potatosalad.cpp:16:20: note: candidate expects 2 arguments, 1 provided
16 | reverse(potatas);
| ^
In file included from /usr/include/c++/9/algorithm:71,
from potatosalad.cpp:4:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:249:1: note: candidate: ‘template<class _ExecutionPoli