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;
| ~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务