Problem rollercoaster
User Shauryaw
Submission Time 2025-06-20 13:03:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:14:2: error: ‘happy’ was not declared in this scope
14 | happy = 0;
| ^~~~~
rollercoaster.cpp:17:2: error: expected ‘,’ or ‘;’ before ‘for’
17 | for (int i = 0; i < n; i++) {
| ^~~
rollercoaster.cpp:17:18: error: ‘i’ was not declared in this scope
17 | for (int i = 0; i < n; i++) {
| ^