Problem rabbiteatrabbit
User haydendoo
Submission Time 2023-05-24 13:14:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rabbiteatrabbit.cpp: In function ‘long long int recur(long long int, long long int, bool)’:
rabbiteatrabbit.cpp:20:52: error: too few arguments to function ‘long long int recur(long long int, long long int, bool)’
20 | return memo[idx][taken] = max(recur(idx+1,taken),recur(idx+2,taken+1)+arr[idx]);
| ^
rabbiteatrabbit.cpp:10:5: note: declared here
10 | int recur(int idx, int taken, bool loop){
| ^~~~~
rabbiteatrabbit.cpp:20:73: error: too few arguments to function ‘long long int recur(long long int, long long int, bool)’
20 | return memo[idx][taken] = max(recur(idx+1,taken),recur(idx+2,taken+1)+arr[idx]);
| ^
rabbiteatrabbit.cpp:10:5: note: declared here
10 | int recur(int idx, int taken, bool loop){
| ^~~~~