foo.cc: In function 'int main()':
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:20:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | for(i = 1; i <= m; i++) scanf("%d%d%d", &fuk[i].a, &fuk[i].b, &fuk[i].c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务