Problem | lunchbox |
---|---|
User | averagejav |
Submission Time | 2025-06-18 15:20:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:32: error: no matching function for call to ‘sort(<unresolved overloaded function type>, std::vector<long long int>::iterator)’
11 | sort(list.front, list.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 lunchbox.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<long long int*, std::vector<long long 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 ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’<