/ 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 263ms 173.867 MiB
#2 Accepted 166ms 175.078 MiB
#3 Accepted 205ms 173.234 MiB
#4 Accepted 2ms 384.0 KiB
#5 Runtime Error 192ms 230.234 MiB
#6 Runtime Error 222ms 229.988 MiB
#7 Runtime Error 163ms 230.375 MiB
#8 Runtime Error 151ms 231.102 MiB
#9 Runtime Error 159ms 229.332 MiB
#10 Accepted 4ms 356.0 KiB

信息

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