/ Vijos /

记录详情

Wrong Answer

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)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB

信息

递交者
类型
自测
题目
P1106 侦探推理
语言
C++
递交时间
2022-02-04 19:05:38
评测时间
2022-02-04 19:05:38
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB