Problem | 01knapsack |
---|---|
User | chiefoggy |
Submission Time | 2023-12-30 18:21:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:16:33: error: invalid types ‘long long int[int]’ for array subscript
16 | if (j >= weight[i][j]) dp[i][j] = max (dp[i-1][j], dp[i-1][j-weight[i]] + value[i]);
| ^