/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:4:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    4 | #define rep(i,a,b) for (int i=(a); i<=(b); i++)
      |                    ^~~
foo.cc:17:5: note: in expansion of macro 'rep'
   17 |     rep(i,1,m) scanf("%d",&a[i]); a[0]=0; a[m+1]=n+1;
      |     ^~~
foo.cc:17:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   17 |     rep(i,1,m) scanf("%d",&a[i]); a[0]=0; a[m+1]=n+1;
      |                                   ^
foo.cc:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   16 |     scanf("%d%d",&n,&m); clr(f);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:17:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |     rep(i,1,m) scanf("%d",&a[i]); a[0]=0; a[m+1]=n+1;
      |                ~~~~~^~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 94, expect 100. 3ms 384.0 KiB
#2 Wrong Answer Read 32, expect 36. 6ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Wrong Answer Read -2691, expect 807. 3ms 384.0 KiB
#7 Wrong Answer Read 560, expect 564. 2ms 384.0 KiB
#8 Wrong Answer Read -387, expect 616. 2ms 384.0 KiB
#9 Wrong Answer Read -229, expect 138. 4ms 384.0 KiB
#10 Wrong Answer Read 106, expect 569. 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1268 释放囚犯
题目数据
下载
语言
C++
递交时间
2022-07-07 19:30:20
评测时间
2022-07-07 19:30:20
评测机
分数
30
总耗时
36ms
峰值内存
384.0 KiB