foo.cc: In function 'int main()':
foo.cc:23:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
23 | if(sum/s[g-1]==1)
| ^~
foo.cc:29:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
29 | if(j>=g-1)
| ^~
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)提供评测服务