Problem swords
User JamesPearman
Submission Time 2024-02-21 21:35:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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