/ 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 1247ms 79.867 MiB
#2 Accepted 1224ms 79.867 MiB
#3 Accepted 748ms 79.867 MiB
#4 Accepted 682ms 79.867 MiB
#5 Accepted 987ms 79.867 MiB
#6 Accepted 951ms 79.867 MiB
#7 Accepted 667ms 79.867 MiB
#8 Accepted 961ms 79.992 MiB
#9 Accepted 752ms 79.996 MiB
#10 Accepted 691ms 79.867 MiB

信息

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