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