foo.cc: In function 'int main()':
foo.cc:35:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:47:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
47 | scanf("%d%d%d",&x,&y,&d);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc: In function 'void dijkstra()':
foo.cc:28:12: warning: 'mini' may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | from[j]=mini;
| ~~~~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:65:9: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
65 | a[y][x]*=2;
| ~~~~~~~^~~
foo.cc:65:9: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
[Hydro](https://hydro.ac)提供评测服务