记录详情

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 ≥307ms ≥16.0 MiB
#2 Memory Exceeded ≥329ms ≥16.0 MiB
#3 Memory Exceeded ≥355ms ≥16.0 MiB
#4 Memory Exceeded ≥377ms ≥16.0 MiB
#5 Memory Exceeded ≥377ms ≥16.0 MiB
#6 Memory Exceeded ≥378ms ≥16.0 MiB
#7 Memory Exceeded ≥378ms ≥16.0 MiB
#8 Memory Exceeded ≥355ms ≥16.0 MiB
#9 Memory Exceeded ≥313ms ≥16.0 MiB
#10 Memory Exceeded ≥303ms ≥16.0 MiB
#11 Memory Exceeded ≥315ms ≥16.0 MiB
#12 Memory Exceeded ≥305ms ≥16.0 MiB
#13 Memory Exceeded ≥301ms ≥16.0 MiB
#14 Memory Exceeded ≥306ms ≥16.0 MiB

信息

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