foo.cc: In function 'int main()':
foo.cc:38:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:40:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
foo.cc:42:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
42 | system("pause");
| ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务