Problem moneychanger
User Dana
Submission Time 2023-11-10 11:28:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int32_t main()’:
moneychanger.cpp:22:39: error: expected ‘]’ before ‘)’ token
22 | dp[i] = min(dp[i], dp[i - coins[j])] + 1);
| ^
| ]
moneychanger.cpp:22:40: error: expected ‘;’ before ‘]’ token
22 | dp[i] = min(dp[i], dp[i - coins[j])] + 1);
| ^
| ;
moneychanger.cpp:27:13: error: expected ‘;’ before ‘}’ token
27 | cout << -1
| ^
| ;
28 | }
| ~