0_0_21682790_8157.cpp: In function 'void debug(int)':
0_0_21682790_8157.cpp:22:38: error: invalid types 'int[int]' for array subscript
cout << dp[n][j][k][i] << " ";
^
0_0_21682790_8157.cpp: In function 'int main()':
0_0_21682790_8157.cpp:45:57: error: invalid types 'int[int]' for array subscript
t = max(t, dp[i-1][j][k][l-1] + w[i]);
^
0_0_21682790_8157.cpp:47:61: error: invalid types 'int[int]' for array subscript
t = max(t, dp[i-1][j-c1[i]][k][l] + w[i]);
^
0_0_21682790_8157.cpp:49:61: error: invalid types 'int[int]' for array subscript
t = max(t, dp[i-1][j][k-c2[i]][l] + w[i]);
^
0_0_21682790_8157.cpp:50:38: error: invalid types 'int[int]' for array subscript
dp[i][j][k][l] = max(t, dp[i-1][j][k][l]);
^
0_0_21682790_8157.cpp:50:64: error: invalid types 'int[int]' for array subscript
dp[i][j][k][l] = max(t, dp[i-1][j][k][l]);
^
0_0_21682790_8157.cpp:56:36: error: invalid types 'int[int]' for array subscript
answer = dp[n][v1][v2][mian];
^
|