Problem | coincombinations |
---|---|
User | asbx |
Submission Time | 2023-11-15 13:40:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coincombinations.cpp:7:7: error: expected constructor, destructor, or type conversion before ‘(’ token
7 | memset(coincombi, -1, sizeof(coincombi));
| ^
coincombinations.cpp: In function ‘void f(int, int)’:
coincombinations.cpp:10:65: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
10 | if(coincombi[value][coin-1]!=-1) return coincombi[value][coin-1];
| ^
coincombinations.cpp:12:37: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
12 | return coincombi[value][coin-1] = 1;
| ^
coincombinations.cpp:15:101: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
15 | return coincombi[value][coin-1] = coincombi[value][coin-2]+coincombi[value-coinval[coin-1]][coin-1];
|