/ 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:53:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |         scanf("%d%d",&l,&r);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:54:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   54 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 5ms 512.0 KiB
#4 Wrong Answer Read 10, expect 9. 2ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Wrong Answer Read 100, expect 4950. 3ms 384.0 KiB
#7 Accepted 14ms 896.0 KiB
#8 Accepted 5ms 512.0 KiB
#9 Accepted 9ms 512.0 KiB
#10 Wrong Answer Read 605, expect 4501. 7ms 512.0 KiB

信息

递交者
类型
递交
题目
P1112 小胖的奇偶
语言
C++
递交时间
2022-06-05 16:47:43
评测时间
2022-06-05 16:47:43
评测机
分数
70
总耗时
63ms
峰值内存
896.0 KiB