Problem monsters
User Dynonychus
Submission Time 2024-01-08 18:23:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘int main()’:
monsters.cpp:21:24: error: template argument 1 is invalid
21 | vector<pair<int, int> sec;
| ^~~
monsters.cpp:21:24: error: template argument 2 is invalid
monsters.cpp:27:3: error: ‘sec’ was not declared in this scope; did you mean ‘vec’?
27 | sec.push_back({b, a});
| ^~~
| vec
monsters.cpp:40:8: error: ‘sec’ was not declared in this scope; did you mean ‘vec’?
40 | sort(sec.begin(), sec.end());
| ^~~
| vec