Problem rollercoaster
User WangZhenxuan
Submission Time 2025-06-20 13:13:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp:28:31: error: stray ‘\’ in program
28 | cout << h - l << \n
| ^
rollercoaster.cpp:33:30: error: stray ‘\’ in program
33 | cout << h - l << \n
| ^
rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:12:5: error: expected initializer before ‘deque’
12 | deque<long long> de
| ^~~~~
rollercoaster.cpp:15:20: error: ‘i’ was not declared in this scope
15 | for(int i = 0; i <N; i++) {
| ^
rollercoaster.cpp:15:23: error: ‘N’ was not declared in this scope
15 | for(int i = 0; i <N; i++) {
| ^
rollercoaster.cpp:23:13: error: ‘s’ was not declared in this scope
23 | s.insert(dq[i])
| ^
rollercoaster.cpp:23:22: error: ‘dq’ was not declared in this scope
23 |