Problem rollercoaster
User shoryu386
Submission Time 2025-06-18 22:41:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:22:11: error: ‘i’ was not declared in this scope
22 | if (arr[i+k-1] == 0) lastSeen0 = i+k-1;
| ^