Problem | fuel |
---|---|
User | yc |
Submission Time | 2025-06-02 13:36:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fuel.cpp: In function ‘int main()’:
fuel.cpp:13:22: error: no matching function for call to ‘sort(<unresolved overloaded function type>, std::deque<int>::iterator)’
13 | sort(n.begin,n.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 fuel.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)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~