cities.cpp: In function 'int main()':
cities.cpp:26:34: warning: overflow in implicit constant conversion [-Woverflow]
memset(dist, inf, sizeof dist);
^
cities.cpp:42:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long long i = 0; i < g[v].size(); i++){
~~^~~~~~~~~~~~~
cities.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %lld %lld %lld", &n, &k, &m);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cities.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %lld", &a);
~~~~~^~~~~~~~~~~~~
cities.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %lld %lld %lld", &a, &b, &c);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~