Problem pilot
User CastyLoz17
Submission Time 2024-03-06 17:16:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pilot.cpp: In function ‘int main()’:
pilot.cpp:22:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | while (right < N) {
| ^
pilot.cpp:23:25: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} [-fpermissive]
23 | if (heights[right] <= cruisingAltitudes[i]) {
| ^~~~~
| |
| std::ios_base& (*)(std::ios_base&)
In file included from /usr/include/c++/9/vector:67,
from pilot.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1040:28: note: initializing argument 1 of ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector