/ 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 905ms 32.879 MiB
#2 Accepted 685ms 32.742 MiB
#3 Accepted 670ms 32.742 MiB
#4 Accepted 618ms 32.742 MiB
#5 Accepted 672ms 32.746 MiB
#6 Accepted 755ms 32.742 MiB
#7 Accepted 1017ms 32.742 MiB
#8 Accepted 666ms 32.742 MiB
#9 Accepted 672ms 32.742 MiB
#10 Accepted 892ms 32.746 MiB

信息

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