Problem 01knapsack
User yanganyi
Submission Time 2023-06-30 17:09:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp: In function ‘int32_t main()’:
01knapsack.cpp:19:68: error: expected ‘;’ before ‘}’ token
19 | if (j-w[i]>0) dp[i][j]=max(dp[i][j],dp[i][j-w[i]]+v[i])
| ^
| ;
20 | }
| ~