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