| Problem | swords |
|---|---|
| User | GanJaeHan |
| Submission Time | 2026-02-20 17:02:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<pair<int,int>> swords(n);
| ^~~~~~
swords.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;
swords.cpp:6:24: error: expected primary-expression before ‘>’ token
6 | vector<pair<int,int>> swords(n);
| ^~
swords.cpp:6:27: error: ‘swords’ was not declared in this scope
6 | vector<pair<int,int>> swords(n);
| ^~~~~~
swords.cpp:10:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
10 | sort(swords.begin(), swords.end(), [](pair<int,int> &a, pair<int,int> &b){
| ^~~~
| qsort