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