记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |   scanf("%d", &a[i]);
      |   ~~~~~^~~~~~~~~~~~~
foo.cc:17:8: warning: iteration 1000009 invokes undefined behavior [-Waggressive-loop-optimizations]
   17 |   f[i] = i;
      |   ~~~~~^~~
foo.cc:16:20: note: within this loop
   16 |  for (int i = 1; i <= maxn; i++)  //初始化f数组为它本身
      |                  ~~^~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 19ms 4.125 MiB
#2 Accepted 12ms 4.125 MiB
#3 Accepted 18ms 4.25 MiB
#4 Accepted 9ms 4.25 MiB
#5 Accepted 11ms 4.25 MiB
#6 Accepted 29ms 4.5 MiB
#7 Accepted 18ms 4.625 MiB
#8 Accepted 256ms 12.492 MiB
#9 Accepted 259ms 12.492 MiB
#10 Accepted 310ms 14.492 MiB

信息

递交者
类型
递交
比赛
2019蓝桥省赛A组原题重温
语言
C++
递交时间
2022-03-18 09:27:50
评测时间
2022-03-18 09:27:50
评测机
分数
100
总耗时
947ms
峰值内存
14.492 MiB