Problem moneychanger
User ipoposg
Submission Time 2022-12-27 06:53:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp:9:11: error: ‘MAX_N’ was not declared in this scope; did you mean ‘MAX_V’?
9 | int coins[MAX_N];
| ^~~~~
| MAX_V
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:16:12: error: ‘coins’ was not declared in this scope
16 | cin >> coins[i];
| ^~~~~
moneychanger.cpp:24:11: error: ‘coins’ was not declared in this scope
24 | if (coins[j] <= i && min_coins[i - coins[j]] + 1 < min_coins[i]) {
| ^~~~~