Problem walking
User huangchengcheng
Submission Time 2026-08-17 18:11:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

walking.cpp: In function ‘int main()’:
walking.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<pair<int,int>> idk(n);
| ^~~~~~
walking.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;
walking.cpp:8:24: error: expected primary-expression before ‘>’ token
8 | vector<pair<int,int>> idk(n);
| ^~
walking.cpp:8:27: error: ‘idk’ was not declared in this scope
8 | vector<pair<int,int>> idk(n);
| ^~~
walking.cpp:15:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
15 | sort(idk.begin(),idk.end());
| ^~~~
| qsort
walking.cpp:17:12: error: expected primary-expression before ‘double’
17