cities.cpp: In function 'void mssp(int)':
cities.cpp:19:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<from[x].size();i++) {
^
cities.cpp: At global scope:
cities.cpp:28:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
cities.cpp: In function 'int main()':
cities.cpp:46:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(x=1;x<=n;x++) for(i=0;i<can[bit].size();i++) mem[x][bit] = min(mem[x][bit],mem[x][can[bit][i]] + mem[x][bit^can[bit][i]]);
^
cities.cpp:31:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&k,&m);
^
cities.cpp:33:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=0;i<k;i++) scanf("%d",&x), sp[x] = i;
^
cities.cpp:35:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&x,&y,&val);
^
cities.cpp:38:10: warning: array subscript is below array bounds [-Warray-bounds]
p2[-1] = 0; p2[0] = 1;
^