/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void rd(T&)':
foo.cc:16:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   16 |   for(x=numb;isdigit(ch=getchar());x=x*10+numb);(fl==true)&&(x=-x);}
      |   ^~~
foo.cc:16:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   16 |   for(x=numb;isdigit(ch=getchar());x=x*10+numb);(fl==true)&&(x=-x);}
      |                                                 ^
foo.cc: In function 'int Miracle::main()':
foo.cc:49:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   49 |         scanf("%d%d",&p[i],&w[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:53:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |         scanf("%d%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 384.0 KiB
#2 Wrong Answer Read 121041, expect 125751. 19ms 2.512 MiB
#3 Wrong Answer Read 12698, expect 51208. 9ms 4.25 MiB
#4 Wrong Answer Read 19540, expect 82061. 9ms 4.375 MiB
#5 Wrong Answer Read 48453, expect 137787. 10ms 4.25 MiB
#6 Wrong Answer Read 45543, expect 99302. 19ms 3.625 MiB
#7 Wrong Answer Read 43011, expect 99301. 17ms 3.75 MiB
#8 Wrong Answer Read 26708, expect 77902. 9ms 3.875 MiB
#9 Wrong Answer Read 1879050176, expect 999. 4ms 512.0 KiB
#10 Wrong Answer Read 69227, expect 181866. 11ms 4.25 MiB

信息

递交者
类型
递交
题目
P1250 最勇敢的机器人
语言
C++
递交时间
2022-06-05 14:47:02
评测时间
2022-06-05 14:47:02
评测机
分数
10
总耗时
119ms
峰值内存
4.375 MiB