Problem wabot
User limzuwan
Submission Time 2023-06-16 17:54:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wabot.cpp: In function ‘int main()’:
wabot.cpp:20:31: error: no matching function for call to ‘sort(<unresolved overloaded function type>, std::deque<int>::iterator)’
20 | sort(A[i].begin, A[i].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 wabot.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘void std::sort(_RAIter, _RAIter) [with _RAIter = std::_Deque_iterator<int, int&, int*>]’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:32: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::_Deque_iterator<int, int&, int*>’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ~~~~~