Problem poi
User PlayVoltz
Submission Time 2023-08-14 10:30:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

poi.cpp: In function ‘bool customsort(std::pair<int, int>&, std::pair<int, int>&)’:
poi.cpp:6:19: error: request for member ‘second’ in ‘a.std::pair<int, int>::second’, which is of non-class type ‘int’
6 | return a.second.second<b.second.second
| ^~~~~~
poi.cpp:6:35: error: request for member ‘second’ in ‘b.std::pair<int, int>::second’, which is of non-class type ‘int’
6 | return a.second.second<b.second.second
| ^~~~~~
poi.cpp:6:41: error: expected ‘;’ before ‘}’ token
6 | return a.second.second<b.second.second
| ^
| ;
7 | }
| ~
poi.cpp:9:19: error: request for member ‘first’ in ‘a.std::pair<int, int>::second’, which is of non-class type ‘int’
9 | return a.second.first>b.seco