foo.cc: In function 'int main()':
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d %d",&n,&m); //读入
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:25:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d",&a[i]); //还是读入
| ~~~~~^~~~~~~~~~~~
foo.cc:29:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务