stations.cpp: In function 'vi label(int, int, vi, vi)':
stations.cpp:5:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define loop(x, i) for (int i = 0; i < x; i++)
......
42 | loop(u.size(), i)
|
stations.cpp:42:2: note: in expansion of macro 'loop'
42 | loop(u.size(), i)
| ^~~~
stations.cpp:60:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::set<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int i = 0; i < s.size(); i++)
| ~~^~~~~~~~~~
stations.cpp: In function 'int find_next_station(int, int, vi)':
stations.cpp:84:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for (int i = 1; i < c.size() - 1; i++)
| ~~^~~~~~~~~~~~~~
stations.cpp:94:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for (int i = 1; i < c.size(); i++)
| ~~^~~~~~~~~~
stations.cpp:111:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | for (int i = 1; i < c.size(); i++)
| ~~^~~~~~~~~~