Problem | maximumtriangle |
---|---|
User | LCJLY |
Submission Time | 2023-12-27 10:44:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
maximumtriangle.cpp: In member function ‘bool LineContainer::isect(std::multiset<Line, std::less<void> >::iterator, std::multiset<Line, std::less<void> >::iterator)’:
maximumtriangle.cpp:30:31: error: assignment of member ‘Line::p’ in read-only object
30 | if (y == end()) return x->p = inf, 0;
| ~~~~~^~~~~
maximumtriangle.cpp:31:26: error: assignment of member ‘Line::p’ in read-only object
31 | if (x->k == y->k) x->p = x->m > y->m ? inf : -inf;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
maximumtriangle.cpp:32:13: error: assignment of member ‘Line::p’ in read-only object
32 | else x->p = div(y->m - x->m, x->k - y->k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~