/ 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 3ms 384.0 KiB
#2 Wrong Answer Read 95759, expect 125751. 8ms 2.125 MiB
#3 Wrong Answer Read 13036, expect 51208. 11ms 3.375 MiB
#4 Wrong Answer Read 25169, expect 82061. 16ms 3.5 MiB
#5 Wrong Answer Read 50088, expect 137787. 12ms 5.375 MiB
#6 Wrong Answer Read 43264, expect 99302. 11ms 2.375 MiB
#7 Wrong Answer Read 41689, expect 99301. 7ms 2.375 MiB
#8 Wrong Answer Read 27675, expect 77902. 6ms 2.375 MiB
#9 Accepted 4ms 384.0 KiB
#10 Wrong Answer Read 69227, expect 181866. 16ms 6.875 MiB

信息

递交者
类型
递交
题目
P1250 最勇敢的机器人
语言
C++
递交时间
2022-06-05 14:51:33
评测时间
2022-06-05 14:51:33
评测机
分数
20
总耗时
99ms
峰值内存
6.875 MiB