/ Vijos /

记录详情

Memory Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:70:12: warning: unused variable 'mp' [-Wunused-variable]
  int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
            ^~
/in/foo.cc:70:20: warning: unused variable 'mo' [-Wunused-variable]
  int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
                    ^~
/in/foo.cc:70:41: warning: unused variable 'maxa' [-Wunused-variable]
  int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
                                         ^~~~
/in/foo.cc:93:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d",ans);
  ~~~~~~^~~~~~~~~~
/in/foo.cc:30:20: warning: 'ma' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x/gcd(x,y)*y;
                    ^
/in/foo.cc:70:9: note: 'ma' was declared here
  int mi,ma,mp=-inf,mo=inf,l=0,r,mid,ans,maxa;
         ^~
/in/foo.cc:85:7: warning: 'mi' may be used uninitialized in this function [-Wmaybe-uninitialized]
  r=lcm(-mi,ma);
    ~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 355ms 232.344 MiB
#2 Accepted 217ms 232.238 MiB
#3 Accepted 212ms 233.48 MiB
#4 Accepted 4ms 376.0 KiB
#5 Memory Exceeded ≥610ms ≥256.0 MiB
#6 Memory Exceeded ≥1006ms ≥256.0 MiB
#7 Memory Exceeded ≥1138ms ≥256.0 MiB
#8 Memory Exceeded ≥584ms ≥256.0 MiB
#9 Memory Exceeded ≥1301ms ≥256.0 MiB
#10 Accepted 3ms 364.0 KiB

信息

递交者
类型
递交
题目
P1527 数列
语言
C++
递交时间
2017-10-27 21:34:58
评测时间
2017-10-27 21:34:58
评测机
分数
50
总耗时
≥5436ms
峰值内存
≥256.0 MiB