记录详情

Runtime Error

/in/foo.cc:10:24: warning: left shift count >= width of type [-Wshift-count-overflow]
 int package[N], f[1 << M];//每一行的二进制数
                        ^
/in/foo.cc: In function 'int h(int)':
/in/foo.cc:19:19: warning: array subscript is above array bounds [-Warray-bounds]
   int i = f[s & -s];
           ~~~~~~~~^
/in/foo.cc: In function 'bool dfs(int, int)':
/in/foo.cc:39:19: warning: array subscript is above array bounds [-Warray-bounds]
   int i = f[s & -s];
           ~~~~~~~~^
/in/foo.cc: In function 'int main()':
/in/foo.cc:54:38: warning: array subscript is above array bounds [-Warray-bounds]
  for (int i = 0; i < n; i++) f[1 << i] = i;
                              ~~~~~~~~^
# 状态 耗时 内存占用
#1 Runtime Error 1ms 212.0 KiB
#2 Runtime Error 1ms 212.0 KiB
#3 Runtime Error 2ms 216.0 KiB
#4 Runtime Error 2ms 204.0 KiB
#5 Runtime Error 1ms 212.0 KiB
#6 Runtime Error 1ms 200.0 KiB
#7 Runtime Error 1ms 208.0 KiB
#8 Runtime Error 1ms 216.0 KiB
#9 Runtime Error 2ms 200.0 KiB
#10 Wrong Answer 2ms 212.0 KiB

信息

递交者
类型
递交
题目
P1065 毒药?解药?
比赛
小兰赛 2019/5/17
语言
C++
递交时间
2019-05-18 11:48:00
评测时间
2019-05-18 11:48:00
评测机
分数
0
总耗时
19ms
峰值内存
216.0 KiB