Closed ChrisVilches closed 2 years ago
kattis/asteroids.cpp
Should be bool type.
bool
pair<bool, Point> intersect_non_collinear(const Segment& s) const { const ld o1 = orientation(p, q, s.p) != orientation(p, q, s.q); const ld o2 = orientation(s.p, s.q, p) != orientation(s.p, s.q, q); return o1 && o2 ? make_pair(true, intersection_point(s)) : make_pair(false, Point{}); }
And maybe in other files where I used the same algorithm...
Done kattis-asteroids and uva-polygons
kattis/asteroids.cpp
Should be
bool
type.