Main.cpp: In function 'int main()':
Main.cpp:9:5: error: 'vector' was not declared in this scope
9 | vector<pair<int, string> > score(n);
| ^~~~~~
Main.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;
Main.cpp:9:30: error: expected primary-expression before '>' token
9 | vector<pair<int, string> > score(n);
| ^
Main.cpp:9:32: error: 'score' was not declared in this scope
9 | vector<pair<int, string> > score(n);
| ^~~~~
Main.cpp:10:30: error: expected primary-expression before '>' token
10 | vector<pair<int, string> > arr(n);
| ^
Main.cpp:10:32: error: 'arr' was not declared in this scope
10 | vector<pair<int, string> > arr(n);
| ^~~
Main.cpp:21:5: error: 'sort' was not declared in this scope; did you mean 'qsort'?
21 | sort(score.begin(), score.end());
| ^~~~
| qsort