Problem rollercoaster
User Subz3r0
Submission Time 2025-06-20 14:29:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:11:40: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘long long int [a]’
11 | long long max = *max_element(v.begin() + i, v.begin() + i + b);
| ^~~~~
rollercoaster.cpp:11:55: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘long long int [a]’
11 | long long max = *max_element(v.begin() + i, v.begin() + i + b);
| ^~~~~
rollercoaster.cpp:12:40: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘long long int [a]’
12 | long long min = *min_element(v.begin() + i, v.begin() + i + b);
| ^~~~~
rollercoaster.cpp:12:55: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘long long int [a]’
12 | long long min = *min_element(v.begin