Problem | maximumtriangle |
---|---|
User | LCJLY |
Submission Time | 2023-12-27 10:45:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
maximumtriangle.cpp: In member function ‘void LineContainer::add(long long int, long long int)’:
maximumtriangle.cpp:36:36: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
36 | auto z = insert({k, m, 0}), y = z++, x = y;
| ~^~
maximumtriangle.cpp:36:3: error: inconsistent deduction for ‘auto’: ‘std::pair<std::_Rb_tree_const_iterator<Line>, bool>’ and then ‘<type error>’
36 | auto z = insert({k, m, 0}), y = z++, x = y;
| ^~~~
maximumtriangle.cpp:37:34: error: no matching function for call to ‘LineContainer::erase(std::pair<std::_Rb_tree_const_iterator<Line>, bool>&)’
37 | while (isect(y, z)) z = erase(z);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from maximumtriangle.cpp:1:
/usr/include/c++/9/bit