Problem coinbag
User PlayVoltz
Submission Time 2023-07-28 22:25:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘int main()’:
coinbag.cpp:13:28: error: ‘w’ was not declared in this scope
13 | dp[j] = max(dp[j], dp[j-w[i]]+value[i]);
| ^