Problem snack
User RendezvousAnonymous
Submission Time 2023-11-09 15:21:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:22:35: error: ‘i’ was not declared in this scope
22 | arr2[k] = max(arr2[k - 1] + arr[i], arr[i]);
| ^