Problem competition
User Batman
Submission Time 2026-02-20 13:42:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:12:2: error: ‘vector’ was not declared in this scope
12 | vector<pair<int,int>> scores (n);
| ^~~~~~
competition.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include<iostream>
+++ |+#include <vector>
2 | using namespace std;
competition.cpp:12:21: error: expected primary-expression before ‘>’ token
12 | vector<pair<int,int>> scores (n);
| ^~
competition.cpp:12:24: error: ‘scores’ was not declared in this scope
12 | vector<pair<int,int>> scores (n);
| ^~~~~~
competition.cpp:15:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
15 | sort(scores.begin(),scores.end(),cmp);
| ^~~~
| qsort