/ Vijos /

记录详情

Accepted

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:64:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   64 |           int c;scanf("%d",&c);
      |                 ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1026 毒药?解药?
语言
C++
递交时间
2022-06-05 17:22:30
评测时间
2022-06-05 17:22:30
评测机
分数
100
总耗时
27ms
峰值内存
384.0 KiB