Problem 01knapsack
User jeongwonho64
Submission Time 2023-02-07 16:55:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:194:5: error: ‘d’ was not declared in this scope
194 | d[i][j] = max(dp[i-1][j],dp[i-1][j-v[i].d]+v[i].s);
| ^