Problem | placingrouters |
---|---|
User | ChickenCoder |
Submission Time | 2023-06-15 23:36:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
placingrouters.cpp: In function ‘void solve()’:
placingrouters.cpp:13:2: error: ‘vector’ was not declared in this scope
13 | vector<pair<int, int> > arr(n);
| ^~~~~~
placingrouters.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <set>
+++ |+#include <vector>
3 | using namespace std;
placingrouters.cpp:13:24: error: expected primary-expression before ‘>’ token
13 | vector<pair<int, int> > arr(n);
| ^
placingrouters.cpp:13:26: error: ‘arr’ was not declared in this scope
13 | vector<pair<int, int> > arr(n);
| ^~~
placingrouters.cpp:24:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
24 | sort(arr.begin()+1, arr.end(), comp);
| ^~~~
| qsort