Problem swords
User wahjsodhowasd
Submission Time 2026-02-13 09:58:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:8:8: error: expected unqualified-id before ‘<<’ token
8 | vector <<pair<int,int>> pingrei;
| ^~
swords.cpp:11:1: error: ‘pingrei’ was not declared in this scope
11 | pingrei.push_back({a,b})};
| ^~~~~~~
swords.cpp:12:6: error: ‘pingrei’ was not declared in this scope
12 | sort(pingrei.begin(),pingrei.end(),greater<int,int>);
| ^~~~~~~
swords.cpp:12:51: error: wrong number of template arguments (2, should be at least 0)
12 | 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/ostream:38,<