/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:43:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   43 |   for (int i = 2;i <= 9;i++) scanf("%d", &t), (goal[n] *= 10) += t;n++;
      |   ^~~
foo.cc:43:68: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   43 |   for (int i = 2;i <= 9;i++) scanf("%d", &t), (goal[n] *= 10) += t;n++;
      |                                                                    ^
foo.cc:43:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   43 |   for (int i = 2;i <= 9;i++) scanf("%d", &t), (goal[n] *= 10) += t;n++;
      |                              ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1030ms 51.617 MiB
#2 Accepted 1191ms 51.617 MiB
#3 Accepted 657ms 51.617 MiB
#4 Accepted 768ms 51.617 MiB
#5 Accepted 695ms 51.617 MiB
#6 Accepted 857ms 51.617 MiB
#7 Accepted 832ms 51.617 MiB
#8 Accepted 982ms 51.617 MiB
#9 Accepted 798ms 51.617 MiB
#10 Accepted 835ms 51.617 MiB

信息

递交者
类型
递交
题目
P1029 晴天小猪历险记之Number
语言
C++
递交时间
2021-12-24 21:19:13
评测时间
2021-12-24 21:19:13
评测机
分数
100
总耗时
8648ms
峰值内存
51.617 MiB