记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:17:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |   int n; 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",&x);
      |   ~~~~~^~~~~~~~~
foo.cc:19:31: warning: iteration 2000009 invokes undefined behavior [-Waggressive-loop-optimizations]
   19 |  for(int i=1; i<=N; i++) p[i] = i;
      |                          ~~~~~^~~
foo.cc:19:16: note: within this loop
   19 |  for(int i=1; i<=N; i++) p[i] = i;
      |               ~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 9ms 8.0 MiB
#2 Accepted 10ms 8.0 MiB
#3 Accepted 13ms 8.0 MiB
#4 Accepted 11ms 8.0 MiB
#5 Accepted 10ms 8.0 MiB
#6 Accepted 21ms 8.25 MiB
#7 Accepted 23ms 8.25 MiB
#8 Accepted 274ms 13.219 MiB
#9 Accepted 254ms 13.242 MiB
#10 Accepted 356ms 14.492 MiB

信息

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