Problem | coinbag |
---|---|
User | PlayVoltz |
Submission Time | 2023-07-28 22:24:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinbag.cpp: In function ‘int main()’:
coinbag.cpp:12:20: error: ‘w’ was not declared in this scope
12 | for (int j=m; j>=w[i]; ++j){
| ^
coinbag.cpp:13:34: error: ‘v’ was not declared in this scope
13 | dp[j] = max(dp[j], dp[j-w[i]]+v[i]);
| ^