/ Vijos /

记录详情

Runtime Error

/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 249ms 155.215 MiB
#2 Accepted 165ms 155.121 MiB
#3 Accepted 159ms 155.977 MiB
#4 Accepted 4ms 360.0 KiB
#5 Runtime Error 136ms 193.59 MiB
#6 Runtime Error 200ms 230.707 MiB
#7 Runtime Error 129ms 195.113 MiB
#8 Runtime Error 119ms 193.75 MiB
#9 Runtime Error 116ms 193.465 MiB
#10 Accepted 4ms 364.0 KiB

信息

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