/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:54: warning: array subscript is above array bounds [-Warray-bounds]
         f[i&1][j+cut]=max(f[(i&1)^1][j+cut],f[(i&1)^1][j+h[i]+cut]+h[i]);
                                             ~~~~~~~~~^
/in/foo.cc:13:72: warning: array subscript is above array bounds [-Warray-bounds]
         f[i&1][j+cut]=max(f[(i&1)^1][j+cut],f[(i&1)^1][j+h[i]+cut]+h[i]);
                                                                        ^
/in/foo.cc:13:14: warning: array subscript is above array bounds [-Warray-bounds]
         f[i&1][j+cut]=max(f[(i&1)^1][j+cut],f[(i&1)^1][j+h[i]+cut]+h[i]);
         ~~~~~^
/in/foo.cc:14:51: warning: array subscript is above array bounds [-Warray-bounds]
      f[i&1][j+cut]=max(f[(i&1)^1][j+cut],f[(i&1)^1][j-h[i]+cut]+h[i]);
                                          ~~~~~~~~~^
/in/foo.cc:14:69: warning: array subscript is above array bounds [-Warray-bounds]
      f[i&1][j+cut]=max(f[(i&1)^1][j+cut],f[(i&1)^1][j-h[i]+cut]+h[i]);
                                                                     ^
/in/foo.cc:14:11: warning: array subscript is above array bounds [-Warray-bounds]
      f[i&1][j+cut]=max(f[(i&1)^1][j+cut],f[(i&1)^1][j-h[i]+cut]+h[i]);
      ~~~~~^
# 状态 耗时 内存占用
#1 Runtime Error 2ms 256.0 KiB
#2 Runtime Error 3ms 396.0 KiB
#3 Runtime Error 2ms 452.0 KiB
#4 Runtime Error 1ms 256.0 KiB
#5 Runtime Error 3ms 256.0 KiB
#6 Runtime Error 3ms 256.0 KiB
#7 Runtime Error 2ms 332.0 KiB
#8 Runtime Error 1ms 256.0 KiB
#9 Runtime Error 3ms 360.0 KiB
#10 Runtime Error 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1037 搭建双塔
语言
C++
递交时间
2017-06-25 14:13:45
评测时间
2017-06-25 14:13:45
评测机
分数
0
总耗时
28ms
峰值内存
452.0 KiB