Problem | descsort |
---|---|
User | SMJ360 |
Submission Time | 2024-06-19 09:59:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:11:21: error: no matching function for call to ‘std::greater<int>::greater(int [n], int*)’
11 | greater<int>(A, A+n);
| ^
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from descsort.cpp:1:
/usr/include/c++/9/bits/stl_function.h:371:12: note: candidate: ‘constexpr std::greater<int>::greater()’
371 | struct greater : public binary_function<_Tp, _Tp, bool>
| ^~~~~~~
/usr/include/c++/9/bits/stl_function.h:371:12: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/9/bits/stl_function.h:371:12: note: ca