Problem moneychanger
User ansel
Submission Time 2024-06-16 09:44:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:7:16: error: ‘N’ was not declared in this scope
7 | for (int i=N; n<=0; i--){
| ^
moneychanger.cpp:11:22: error: expected ‘;’ before ‘cout’
11 | if (v>0) coins=-1
| ^
| ;
12 | cout<<coins;
| ~~~~