0_0_39507817_11622.cpp: In function 'int solve(int, int)':
0_0_39507817_11622.cpp:11:17: error: invalid types 'int[int]' for array subscript
11 | if(c[i]>j) dp[i][j]=dp[i-1][j];
| ^
0_0_39507817_11622.cpp:12:65: error: invalid types 'int[int]' for array subscript
12 | else dp[i][j]=max(dp[i-1][j],dp[i-1][j-c[i]]+w[i])
| ^
0_0_39507817_11622.cpp:16:18: error: 'C' was not declared in this scope
16 | return dp[n][C];
| ^
|