Problem rollercoaster
User Celado
Submission Time 2025-06-20 15:55:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:23:23: error: ‘heigh’ was not declared in this scope; did you mean ‘height’?
23 | sort(height.rbegin(), heigh.rend());
| ^~~~~
| height
rollercoaster.cpp:25:18: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
25 | cout << *height[0]-*height [n];
| ^
rollercoaster.cpp:25:30: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
25 | cout << *height[0]-*height [n];
| ^