Problem beareatrabbit
User PerihelionfromAphelion
Submission Time 2026-09-04 20:53:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp: In function ‘int32_t main()’:
beareatrabbit.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for (i = 0; i < n; i++) {
| ^
beareatrabbit.cpp:17:7: error: ‘i’ was not declared in this scope
17 | for (i = 0; i < n; i++) {
| ^
beareatrabbit.cpp:20:9: error: assignment of read-only location ‘*(dp + 18446744073709551615)’
20 | dp[-1] = max(0LL, a[0]);
| ~~~~~~~^~~~~~~~~~~~~~~~
beareatrabbit.cpp:21:7: error: ‘i’ was not declared in this scope
21 | for (i = 1; i < n; i++) {
| ^