walk.cpp: In function 'll min_distance(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, int, int)':
walk.cpp:32:30: warning: narrowing conversion of 'g.std::vector<std::vector<std::array<int, 2> > >::size()' from 'std::vector<std::vector<std::array<int, 2> > >::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
32 | g.back().push_back({g.size(), y[id]-loh});
| ~~~~~~^~
walk.cpp:33:26: warning: narrowing conversion of '(g.std::vector<std::vector<std::array<int, 2> > >::size() - 1)' from 'std::vector<std::vector<std::array<int, 2> > >::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
33 | g.push_back({{g.size()-1, y[id]-loh}});
| ~~~~~~~~^~
walk.cpp:38:35: warning: narrowing conversion of '(g.std::vector<std::vector<std::array<int, 2> > >::size() - 1)' from 'std::vector<std::vector<std::array<int, 2> > >::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
38 | g[lst[id]].push_back({g.size()-1, x[i]-x[col[lst[id]]]});
| ~~~~~~~~^~
walk.cpp:68:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::array<int, 2> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | for(int i = 0; i < g.size(); i++) cout << col[i] << " "; cout << endl;
| ~~^~~~~~~~~~
walk.cpp:68:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
68 | for(int i = 0; i < g.size(); i++) cout << col[i] << " "; cout << endl;
| ^~~
walk.cpp:68:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
68 | for(int i = 0; i < g.size(); i++) cout << col[i] << " "; cout << endl;
| ^~~~
walk.cpp:69:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::array<int, 2> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for(int i = 0; i < g.size(); i++) cout << dist[i] << " "; cout << endl;
| ~~^~~~~~~~~~
walk.cpp:69:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
69 | for(int i = 0; i < g.size(); i++) cout << dist[i] << " "; cout << endl;
| ^~~
walk.cpp:69:60: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
69 | for(int i = 0; i < g.size(); i++) cout << dist[i] << " "; cout << endl;
| ^~~~