Problem | carpark |
---|---|
User | bribritt |
Submission Time | 2023-04-15 10:56:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
carpark.cpp: In function ‘int main()’:
carpark.cpp:13:22: error: no matching function for call to ‘sort(<unresolved overloaded function type>, std::vector<int>::iterator)’
13 | sort(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 carpark.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<int*, std::vector<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<int*, std::vector<int> >’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator