foo.cc: In function 'void cun(int)':
foo.cc:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d %d %c %c %d", &d[i].qm, &d[i].bj, &d[i].gb, &d[i].xs, &d[i].lw);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:25:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务