Problem | moneychanger |
---|---|
User | pinglynn |
Submission Time | 2023-11-10 15:24:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int32_t main()’:
moneychanger.cpp:16:17: error: ‘INF’ was not declared in this scope
16 | dp[i] = INF;
| ^~~
moneychanger.cpp:19:25: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘long long int’
19 | dp[i] = min{dp[i] = min(dp[i], dp[i-coins[p]]+1);
| ^~~
moneychanger.cpp:28:1: error: expected ‘}’ at end of input
28 | }
| ^
moneychanger.cpp:7:16: note: to match this ‘{’
7 | int32_t main() {
| ^