Problem beareatrabbit
User rasquait
Submission Time 2025-12-19 16:41:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp: In function ‘int32_t main()’:
beareatrabbit.cpp:14:35: error: ‘prev1’ was not declared in this scope; did you mean ‘prev’?
14 | int current = max(a[i] + prev2, prev1);
| ^~~~~
| prev
beareatrabbit.cpp:18:10: error: ‘current’ was not declared in this scope
18 | cout << current;
| ^~~~~~~