Problem rollercoaster
User Karax
Submission Time 2026-02-02 17:05:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:31:21: error: ‘a’ was not declared in this scope
31 | cout << a[mx.front()] - a[mn.front()] << " ";
| ^
rollercoaster.cpp:31:23: error: ‘mx’ was not declared in this scope; did you mean ‘max’?
31 | cout << a[mx.front()] - a[mn.front()] << " ";
| ^~
| max
rollercoaster.cpp:31:39: error: ‘mn’ was not declared in this scope; did you mean ‘min’?
31 | cout << a[mx.front()] - a[mn.front()] << " ";
| ^~
| min