Problem coincombinations
User asbx
Submission Time 2023-11-15 14:05:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coincombinations.cpp: In function ‘auto f(int, int)’:
coincombinations.cpp:10:39: error: ‘val’ was not declared in this scope; did you mean ‘value’?
10 | else if(coin==0 && value!=0 && round(val/coinval[0])-val/coinval[0]==0){
| ^~~
| value
coincombinations.cpp: At global scope:
coincombinations.cpp:15:1: error: expected declaration before ‘}’ token
15 | }
| ^