| Problem | knapsack |
|---|---|
| User | huangchengcheng |
| Submission Time | 2026-07-31 21:53:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knapsack.cpp: In function ‘int main()’:
knapsack.cpp:63:58: error: ‘weight’ was not declared in this scope
63 | dp[i][j]=max(dp[i][j],v[i]*t+dp[i-1][j-t*weight[i]]);
| ^~~~~~