Problem rollercoaster
User yeezin
Submission Time 2025-06-20 15:26:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:10:16: error: array must be initialized with a brace-enclosed initializer
10 | int a[x] = 0;
| ^
rollercoaster.cpp:15:16: error: ‘i’ was not declared in this scope
15 | cout << a [i];
| ^