/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'bool check(int)':
/in/foo.cc:49:6: warning: unused variable 'u' [-Wunused-variable]
  int u,v,ta;
      ^
/in/foo.cc:49:8: warning: unused variable 'v' [-Wunused-variable]
  int u,v,ta;
        ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:83:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d",ans);
  ~~~~~~^~~~~~~~~~
/in/foo.cc:24:20: warning: 'ma' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x/gcd(x,y)*y;
                    ^
/in/foo.cc:63:9: note: 'ma' was declared here
  int mi,ma;
         ^~
/in/foo.cc:75:15: warning: 'mi' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int l=1,r=lcm(-mi,ma),mid,ans;
            ~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 23ms 16.691 MiB
#2 Accepted 14ms 16.449 MiB
#3 Accepted 14ms 15.691 MiB
#4 Accepted 1ms 324.0 KiB
#5 Runtime Error 13ms 21.195 MiB
#6 Runtime Error 12ms 19.441 MiB
#7 Runtime Error 13ms 19.445 MiB
#8 Runtime Error 12ms 19.199 MiB
#9 Runtime Error 12ms 19.816 MiB
#10 Accepted 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1527 数列
语言
C++
递交时间
2017-10-25 22:02:37
评测时间
2017-10-25 22:02:37
评测机
分数
50
总耗时
121ms
峰值内存
21.195 MiB