Problem moneychanger
User Tyx2019
Submission Time 2024-06-20 15:32:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:7:12: error: ‘N’ was not declared in this scope
7 | cin >> N >> v;
| ^
moneychanger.cpp:11:16: error: ‘coins’ was not declared in this scope; did you mean ‘cos’?
11 | cin >> coins[i];
| ^~~~~
| cos
moneychanger.cpp:17:27: error: ‘coins’ was not declared in this scope; did you mean ‘cos’?
17 | int val = i - coins[j];
| ^~~~~
| cos