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

Compile Error

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