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

Compile Error

coincombinations.cpp: In function ‘auto f(int, int)’:
coincombinations.cpp:13:52: error: expected ‘;’ before ‘{’ token
13 | else if(coin==1 && value!=0 && value%coinval[0]==0{
| ^
| ;
coincombinations.cpp:16:2: error: expected primary-expression before ‘return’
16 | return coincombi[value][coin] = f(value,coin-1)+f(value-coinval[coin],coin);
| ^~~~~~
coincombinations.cpp:15:3: error: expected ‘)’ before ‘return’
15 | }
| ^
| )
16 | return coincombi[value][coin] = f(value,coin-1)+f(value-coinval[coin],coin);
| ~~~~~~
coincombinations.cpp:13:9: note: to match this ‘(’
13 | else if(coin==1 && value!=0 && value%coinval[0]==0{
| ^