Problem sort
User notachicken
Submission Time 2026-07-07 18:55:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:11:22: error: no matching function for call to ‘sort(<unresolved overloaded function type>, <unresolved overloaded function type>)’
11 | sort (x.begin, x.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 sort.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘template<class _RAIter> void std::sort(_RAIter, _RAIter)’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: template argument deduction/substitution failed:
sort.cpp:11:22: note: couldn’t deduce template parameter ‘_RAIter’
11 | sort (x.begin, x.end);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/incl