Problem swords
User wahjsodhowasd
Submission Time 2026-02-13 10:27:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:13:55: error: wrong number of template arguments (2, should be at least 0)
13 | sort(pingrei.begin(),pingrei.end(),greater<int,int>();
| ^
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/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from swords.cpp:1:
/usr/include/c++/9/bits/stl_function.h:337:12: note: provided for ‘template<class _Tp> struct std::greater’
337 | struct greater