foo.cc: In function 'int main()':
foo.cc:6:10: warning: unused variable 'k' [-Wunused-variable]
6 | int n,i,k,j,g;
| ^
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:13:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d %lld",&g,&x);
| ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d",&s[j]);
| ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务