Problem convexhull
User PlayVoltz
Submission Time 2023-09-24 17:00:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

convexhull.cpp: In function ‘long long int get_max_y(const std::vector<Line>&, long long int)’:
convexhull.cpp:35:38: error: passing ‘const std::vector<Line>’ as ‘this’ argument discards qualifiers [-fpermissive]
35 | lines.erase(lines.begin());
| ^
In file included from /usr/include/c++/9/vector:67,
from convexhull.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1427:7: note: in call to ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = Line; _Alloc = std::allocator<Line>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Line*, std::vector<Line> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Line*; std::vector<_Tp, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const Line*, std::vector<Line> >; typename __gnu_cxx::__a