Problem | lunchbox |
---|---|
User | Mineshafter61 |
Submission Time | 2024-01-16 12:35:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:19:10: error: no matching function for call to ‘sort(int [m], int&)’
19 | sort(k, m);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from lunchbox.cpp:2:
/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:
lunchbox.cpp:19:10: note: deduced conflicting types for parameter ‘_RAIter’ (‘int*’ and ‘int’)
19 | sort(k, m);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from lunchbox.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:4893:5: note: candidate: ‘template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)’