foo.cc: In function 'int main()':
foo.cc:40:9: warning: unused variable 'j' [-Wunused-variable]
40 | int i, j, x, y, ans;
| ^
foo.cc:41:7: warning: unused variable 'c' [-Wunused-variable]
41 | char c;
| ^
foo.cc:42:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
42 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:46:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
foo.cc:49:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
49 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
foo.cc:53:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
53 | scanf("%d%d",&x,&y);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务