记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   26 |   scanf("%d", &a[i]);
      |   ~~~~~^~~~~~~~~~~~~
foo.cc:19:8: warning: iteration 1000009 invokes undefined behavior [-Waggressive-loop-optimizations]
   19 |   f[i] = i;
      |   ~~~~~^~~
foo.cc:18:20: note: within this loop
   18 |  for (int i = 1; i <= maxn; i++)
      |                  ~~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 4.125 MiB
#2 Accepted 7ms 4.25 MiB
#3 Accepted 9ms 4.25 MiB
#4 Accepted 7ms 4.25 MiB
#5 Accepted 10ms 4.25 MiB
#6 Accepted 16ms 4.5 MiB
#7 Accepted 15ms 4.5 MiB
#8 Accepted 233ms 12.492 MiB
#9 Accepted 261ms 12.492 MiB
#10 Accepted 338ms 14.617 MiB

信息

递交者
类型
递交
题目
P1330 修改数组
比赛
2022春季 荣誉练习赛1(2019蓝桥A组省赛重温)
语言
C++
递交时间
2022-03-19 21:16:43
评测时间
2022-03-19 21:16:43
评测机
分数
100
总耗时
906ms
峰值内存
14.617 MiB