Problem gotoschool
User JoshuaPyh
Submission Time 2023-10-26 12:54:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp:1:3: error: invalid preprocessing directive #Read
1 | # Read input
| ^~~~
gotoschool.cpp:5:3: error: invalid preprocessing directive #Initialize
5 | # Initialize an empty stack to store the order of students
| ^~~~~~~~~~
gotoschool.cpp:8:3: error: invalid preprocessing directive #Initialize
8 | # Initialize a list to store the final order
| ^~~~~~~~~~
gotoschool.cpp:11:3: error: invalid preprocessing directive #Loop
11 | # Loop through the students in reverse order
| ^~~~
gotoschool.cpp:13:7: error: invalid preprocessing directive #Place
13 | # Place the student number in the order list at the position specified by the number of students in the classroom
| ^~~~~
gotoschool.cpp:16:3: error: invalid preprocessing directive #Print
16 | # Print the order
| ^~~~~
gotoschool.cpp:2:1: error: ā€˜Nā€™ does not name a type
2 | N = int(input())