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

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:13:64: error: expected ‘)’ before ‘;’ token
13 | sort(pingrei.begin(),pingrei.end(),greater<pair<int,int>>();
| ~ ^
| )
swords.cpp:15:21: error: base operand of ‘->’ has non-pointer type ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}
15 | if (pingrei[i+1]->second>=pingrei[i]->second){
| ^~
swords.cpp:15:41: error: base operand of ‘->’ has non-pointer type ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}
15 | if (pingrei[i+1]->second>=pingrei[i]->second){
|