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

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:6:5: error: redeclaration of ‘int num’
6 | int num = 2;
| ^~~
rollercoaster.cpp:5:5: note: ‘int num’ previously declared here
5 | int num = 1;
| ^~~