Problem | squidzofrenzic |
---|---|
User | siqideng09 |
Submission Time | 2023-11-15 14:43:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:16:39: error: no matching function for call to ‘reverse(long long int [N], long long int&)’
16 | sort(arr, arr+N); reverse(arr, arr[N]);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from squidzofrenzic.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:1186:5: note: candidate: ‘template<class _BIter> void std::reverse(_BIter, _BIter)’
1186 | reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
| ^~~~~~~
/usr/include/c++/9/bits/stl_algo.h:1186:5: note: template argument deduction/substitution failed:
squidzofrenzic.cpp:16:39: note: deduced conflicting types for parameter ‘_BIter’ (‘long long int*’ and ‘long long int’)
16 | sort(arr, arr+N); reverse(arr, arr[N]);
|