walk.cpp: In function 'long long int min_distance(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, int, int)':
walk.cpp:32:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for (int i = 0; i < x.size(); i++)
| ~~^~~~~~~~~~
walk.cpp:49:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for (int i = 0; i < l.size(); i++)
| ~~^~~~~~~~~~
walk.cpp:57:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int i = 0; i < x.size(); i++) ok.insert(i);
| ~~^~~~~~~~~~
walk.cpp:59:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (int ci = 0; ci < l.size(); ci++)
| ~~~^~~~~~~~~~
walk.cpp: At global scope:
walk.cpp:130:11: error: redefinition of 'const int M'
130 | const int M = 2000005;
| ^
walk.cpp:8:11: note: 'const int M' previously defined here
8 | const int M = 2000005;
| ^
walk.cpp:131:11: error: redefinition of 'const int N'
131 | const int N = 100005;
| ^
walk.cpp:9:11: note: 'const int N' previously defined here
9 | const int N = 100005;
| ^
walk.cpp:132:10: error: redefinition of 'const ll INF'
132 | const ll INF = 2000000000000000000LL;
| ^~~
walk.cpp:10:10: note: 'const ll INF' previously defined here
10 | const ll INF = 2000000000000000000LL;
| ^~~
walk.cpp:133:23: error: redefinition of 'std::vector<std::array<int, 2> > adj [2000005]'
133 | vector<array<int, 2>> adj[M];
| ^~~
walk.cpp:11:23: note: 'std::vector<std::array<int, 2> > adj [2000005]' previously declared here
11 | vector<array<int, 2>> adj[M];
| ^~~
walk.cpp:134:23: error: redefinition of 'std::vector<std::array<int, 2> > isAt [100005]'
134 | vector<array<int, 2>> isAt[N];
| ^~~~
walk.cpp:12:23: note: 'std::vector<std::array<int, 2> > isAt [100005]' previously declared here
12 | vector<array<int, 2>> isAt[N];
| ^~~~
walk.cpp:136:5: error: redefinition of 'int cnode'
136 | int cnode = 0;
| ^~~~~
walk.cpp:14:5: note: 'int cnode' previously defined here
14 | int cnode = 0;
| ^~~~~
walk.cpp:141:8: error: redefinition of 'struct Comparator'
141 | struct Comparator
| ^~~~~~~~~~
walk.cpp:19:8: note: previous definition of 'struct Comparator'
19 | struct Comparator
| ^~~~~~~~~~
walk.cpp:150:11: error: redefinition of 'long long int min_distance(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, int, int)'
150 | long long min_distance(std::vector<int> x, std::vector<int> h, std::vector<int> l, std::vector<int> r, std::vector<int> y, int s, int g) {
| ^~~~~~~~~~~~
walk.cpp:28:11: note: 'long long int min_distance(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, int, int)' previously defined here
28 | long long min_distance(std::vector<int> x, std::vector<int> h, std::vector<int> l, std::vector<int> r, std::vector<int> y, int s, int g) {
| ^~~~~~~~~~~~
walk.cpp: In function 'long long int min_distance(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, int, int)':
walk.cpp:154:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
154 | for (int i = 0; i < x.size(); i++)
| ~~^~~~~~~~~~
walk.cpp:171:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
171 | for (int i = 0; i < l.size(); i++)
| ~~^~~~~~~~~~
walk.cpp:179:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
179 | for (int i = 0; i < x.size(); i++) ok.insert(i);
| ~~^~~~~~~~~~
walk.cpp:181:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
181 | for (int ci = 0; ci < l.size(); ci++)
| ~~~^~~~~~~~~~