Problem | smurf |
---|---|
User | LYM2025 |
Submission Time | 2025-08-25 12:36:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
smurf.cpp: In function ‘int main()’:
smurf.cpp:9:24: error: no matching function for call to ‘reverse(<unresolved overloaded function type>, <unresolved overloaded function type>)’
9 | reverse(v.begin,v.end);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from smurf.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:
smurf.cpp:9:24: note: couldn’t deduce template parameter ‘_BIter’
9 | reverse(v.begin,v.end);
| ^
In file included from /usr/include/c++/9/algorithm:71,