记录详情

Runtime Error

/in/foo.cc: In function 'void init()':
/in/foo.cc:11:9: warning: iteration 5000008 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(a[i]==0) prime[++cnt]=i;
      ~~~^
/in/foo.cc:9:15: note: within this loop
  for(int i=2;i<=maxn;i++)
              ~^~~~~~
# 状态 耗时 内存占用
#1 Accepted 54ms 20.684 MiB
#2 Accepted 55ms 20.672 MiB
#3 Accepted 53ms 20.703 MiB
#4 Accepted 52ms 20.676 MiB
#5 Accepted 54ms 20.621 MiB
#6 Accepted 53ms 20.684 MiB
#7 Accepted 50ms 20.648 MiB
#8 Accepted 51ms 20.617 MiB
#9 Runtime Error 52ms 20.652 MiB
#10 Accepted 50ms 20.676 MiB

信息

递交者
类型
递交
题目
P1245 A Almost Prime
语言
C++
递交时间
2021-05-01 10:40:17
评测时间
2021-05-01 10:40:17
评测机
分数
90
总耗时
529ms
峰值内存
20.703 MiB