/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int find(int)':
/in/foo.cc:9:8: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   mid=l+r>>1;
       ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:30:8: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
    g[i]=find(a[i]);
    ~~~~^~~~~~~~~~~
/in/foo.cc:9:8: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
   mid=l+r>>1;
       ~^~
/in/foo.cc:7:8: note: 'r' was declared here
  int l,r,mid,ret;
        ^
/in/foo.cc:9:8: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
   mid=l+r>>1;
       ~^~
/in/foo.cc:7:6: note: 'l' was declared here
  int l,r,mid,ret;
      ^
/in/foo.cc:22:8: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
    f[i]=find(a[i]);
    ~~~~^~~~~~~~~~~
/in/foo.cc:9:8: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
   mid=l+r>>1;
       ~^~
/in/foo.cc:7:6: note: 'l' was declared here
  int l,r,mid,ret;
      ^
/in/foo.cc:9:8: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
   mid=l+r>>1;
       ~^~
/in/foo.cc:7:8: note: 'r' was declared here
  int l,r,mid,ret;
        ^
# 状态 耗时 内存占用
#1 Runtime Error 4ms 256.0 KiB
#2 Runtime Error 4ms 344.0 KiB
#3 Runtime Error 4ms 264.0 KiB
#4 Runtime Error 5ms 256.0 KiB
#5 Runtime Error 5ms 512.0 KiB
#6 Runtime Error 4ms 200.0 KiB
#7 Runtime Error 5ms 348.0 KiB
#8 Runtime Error 4ms 384.0 KiB
#9 Runtime Error 3ms 256.0 KiB
#10 Runtime Error 2ms 228.0 KiB

信息

递交者
类型
递交
题目
P1098 合唱队形
语言
C++
递交时间
2017-10-30 14:17:15
评测时间
2017-10-30 14:17:15
评测机
分数
0
总耗时
42ms
峰值内存
512.0 KiB