/ 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 3ms 340.0 KiB

信息

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