foo.cc: In function 'void work()':
foo.cc:23:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
23 | for(k=1;k<=n;k++)if(b[k]==0)x++;else if(b[k]==-1)y++;if(x<=m&&x+y>=m)chk();}}}
| ^~~
foo.cc:23:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
23 | for(k=1;k<=n;k++)if(b[k]==0)x++;else if(b[k]==-1)y++;if(x<=m&&x+y>=m)chk();}}}
| ^~
foo.cc: In function 'int main()':
foo.cc:24:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | int main(){int i;scanf("%d %d %d\n",&n,&m,&p);for(i=1;i<=n;i++){
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务