Problem | lunchbox |
---|---|
User | aa24codebreaker |
Submission Time | 2023-11-09 10:27:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:17:27: error: no matching function for call to ‘sort(long long int [m], long long int&)’
17 | sort(arr, arr[m-1]);
| ^
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: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:17:27: note: deduced conflicting types for parameter ‘_RAIter’ (‘long long int*’ and ‘long long int’)
17 | sort(arr, arr[m-1]);
| ^
In file included from /usr/include/c++/9/algorithm:62,