Problem moneychanger
User pinglynn
Submission Time 2023-11-10 15:26:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int32_t main()’:
moneychanger.cpp:21:25: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘long long int’
21 | dp[i] = min{dp[i] = min(dp[i], dp[i-coins[p]]+1);
| ^~~
moneychanger.cpp:30:1: error: expected ‘}’ at end of input
30 | }
| ^
moneychanger.cpp:9:16: note: to match this ‘{’
9 | int32_t main() {
| ^