/ 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 976ms 172.004 MiB
#2 Accepted 1429ms 171.996 MiB
#3 Accepted 864ms 171.992 MiB
#4 Accepted 866ms 171.992 MiB
#5 Accepted 913ms 172.004 MiB
#6 Accepted 882ms 171.992 MiB
#7 Accepted 1131ms 171.996 MiB
#8 Accepted 1124ms 171.992 MiB
#9 Accepted 920ms 171.992 MiB
#10 Accepted 1073ms 171.992 MiB

信息

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