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

Compile Error

coincombinations.cpp: In lambda function:
coincombinations.cpp:13:78: error: expected ‘{’ before ‘)’ token
13 | return coincombi[value][coin] = f(value,coin-1)+f(value-coinval[coin],[coin]);
| ^
coincombinations.cpp: In function ‘auto f(int, int)’:
coincombinations.cpp:13:78: error: cannot convert ‘f(int, int)::<lambda()>’ to ‘int’
coincombinations.cpp:8:23: note: initializing argument 2 of ‘auto f(int, int)’
8 | auto f(int value, int coin){
| ~~~~^~~~