shortcut.cpp: In function 'void dijkstra(long long int)':
shortcut.cpp:27:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (int i = 0; i < edges[v].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~
shortcut.cpp: In function 'long long int diameter()':
shortcut.cpp:11:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<long long int, long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define rep(i, n) for(int i = 0; i < n; i++)
......
40 | rep(i, edges.size()) {
| ~~~~~~~~~~~~~~~
shortcut.cpp:40:5: note: in expansion of macro 'rep'
40 | rep(i, edges.size()) {
| ^~~
shortcut.cpp:11:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define rep(i, n) for(int i = 0; i < n; i++)
......
43 | rep(i, dist.size()) {
| ~~~~~~~~~~~~~~
shortcut.cpp:43:9: note: in expansion of macro 'rep'
43 | rep(i, dist.size()) {
| ^~~
shortcut.cpp:11:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define rep(i, n) for(int i = 0; i < n; i++)
......
47 | rep(i, dist.size()) {
| ~~~~~~~~~~~~~~
shortcut.cpp:47:9: note: in expansion of macro 'rep'
47 | rep(i, dist.size()) {
| ^~~
shortcut.cpp: In function 'long long int find_shortcut(int, std::vector<int>, std::vector<int>, int)':
shortcut.cpp:11:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | #define rep(i, n) for(int i = 0; i < n; i++)
......
60 | rep(k, l.size()) {
| ~~~~~~~~~~~
shortcut.cpp:60:13: note: in expansion of macro 'rep'
60 | rep(k, l.size()) {
| ^~~