Problem change
User Esan
Submission Time 2024-06-20 09:55:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

change.cpp: In function ‘int main()’:
change.cpp:29:31: error: ‘used_’ was not declared in this scope; did you mean ‘used_5’?
29 | used_5[amt] = used_
| ^~~~~
| used_5
change.cpp:29:31: error: expected ‘}’ at end of input
change.cpp:27:72: note: to match this ‘{’
27 | if (dp[amt - coin] != INF && dp[amt - coin] + 1 < dp[amt]) {
| ^
change.cpp:29:31: error: expected ‘}’ at end of input
29 | used_5[amt] = used_
| ^~~~~
change.cpp:26:52: note: to match this ‘{’
26 | for (int amt = coin; amt <= amount; ++amt) {
| ^
change.cpp:29:31: error: expected ‘}’ at end of input
29 | used_5[amt] = used_
|