Problem | coincombinations |
---|---|
User | asbx |
Submission Time | 2023-11-15 13:42:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coincombinations.cpp: In function ‘void f(int, int)’:
coincombinations.cpp:9:65: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
9 | if(coincombi[value][coin-1]!=-1) return coincombi[value][coin-1];
| ^
coincombinations.cpp:11:37: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
11 | return coincombi[value][coin-1] = 1;
| ^
coincombinations.cpp:14:101: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
14 | return coincombi[value][coin-1] = coincombi[value][coin-2]+coincombi[value-coinval[coin-1]][coin-1];
| ^
coincombinations.cpp: In function ‘int main()’:
coincombinations.cpp:28:35: error: expected ‘;’ before ‘}’ token
2