foo.cc: In function ‘void Dijkstra(long int)’:
foo.cc:121:27: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘std::vector<edgenode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
121 | for (int z = 0; z < edge[x.dot].size(); z++)
| ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:137:13: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
137 | scanf("%d", &n);
| ~^ ~~
| | |
| | long int*
| int*
| %ld
foo.cc:138:13: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
138 | scanf("%d", &m);
| ~^ ~~
| | |
| | long int*
| int*
| %ld
foo.cc:143:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
143 | scanf("%d%s",Te+i, str);
| ~^ ~~~~
| | |
| int* long int*
| %ld
foo.cc:160:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
160 | else printf("%d", cost[ed]);
| ~^ ~~~~~~~~
| | |
| int long int
| %ld