记录详情

Memory Exceeded

/in/foo.cc: In function 'void initial()':
/in/foo.cc:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=1;j<=cnt&&prime[j]*i<=N;j++)
                     ~^~~~~
/in/foo.cc:28:50: warning: iteration 59999999 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(int i=1;i<=N;i++)sum[i]=sum[i-1]+mobius[i];
                                          ~~~~~~~~^
/in/foo.cc:28:18: note: within this loop
     for(int i=1;i<=N;i++)sum[i]=sum[i-1]+mobius[i];
                 ~^~~
/in/foo.cc:20:19: warning: iteration 59999998 invokes undefined behavior [-Waggressive-loop-optimizations]
         if(!book[i]){prime[++cnt]=i;mobius[i]=-1;}
             ~~~~~~^
/in/foo.cc:18:18: note: within this loop
     for(int i=2;i<=N;i++)
                 ~^~~
# 状态 耗时 内存占用
#1 Memory Exceeded ≥300ms ≥160.0 MiB
#2 Time Exceeded ≥302ms ≥154.875 MiB
#3 Time Exceeded ≥303ms ≥158.848 MiB
#4 Time Exceeded ≥306ms ≥148.25 MiB
#5 Time Exceeded ≥313ms ≥158.672 MiB
#6 Time Exceeded ≥303ms ≥159.871 MiB
#7 Time Exceeded ≥304ms ≥156.375 MiB
#8 Time Exceeded ≥305ms ≥149.125 MiB
#9 Memory Exceeded ≥360ms ≥160.0 MiB
#10 Memory Exceeded ≥392ms ≥160.0 MiB
#11 Memory Exceeded ≥358ms ≥160.0 MiB
#12 Memory Exceeded ≥393ms ≥160.0 MiB
#13 Memory Exceeded ≥376ms ≥160.0 MiB
#14 Memory Exceeded ≥376ms ≥160.0 MiB

信息

递交者
类型
递交
语言
C++
递交时间
2018-05-12 18:42:33
评测时间
2018-05-12 18:42:33
评测机
分数
0
总耗时
≥4696ms
峰值内存
≥160.0 MiB