foo.cc: In function 'int main()':
foo.cc:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
7 | freopen("data.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:14:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d", a + i);
| ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务