Problem beareatrabbit
User justin271828
Submission Time 2024-06-26 19:46:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp: In function ‘int eat(bool, int)’:
beareatrabbit.cpp:17:32: error: ‘arr’ was not declared in this scope
17 | mema[x] = max(eat(b, x+2) + arr[x], eat(b, x+1));
| ^~~
beareatrabbit.cpp:21:32: error: ‘arr’ was not declared in this scope
21 | memb[x] = max(eat(b, x+2) + arr[x], eat(b, x+1));
| ^~~