foo.cc: In function 'int main()':
foo.cc:21:21: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]
21 | scanf("%d%d%d",&edge[i].x,&edge[i].y,edge[i].w);
| ~^ ~~~~~~~~~
| | |
| int* int
foo.cc:21:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d%d%d",&edge[i].x,&edge[i].y,edge[i].w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务