Problem | moneychanger |
---|---|
User | Ush |
Submission Time | 2023-11-10 11:43:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int32_t main()’:
moneychanger.cpp:21:17: error: ‘dp’ was not declared in this scope
21 | dp[i] = min(dp[i], dp[i - coins[j]] + 1);
| ^~
moneychanger.cpp:27:9: error: ‘dp’ was not declared in this scope
27 | if (dp[v] == INT_MAX) {
| ^~