| 2 | #define MAXN 1000 |
| 3 | point hull[MAXN]; |
| 4 | bool cmp(const point &a, const point &b) { |
| 5 | return abs(real(a) - real(b)) > EPS ? |
| 6 | real(a) < real(b) : imag(a) < imag(b); } |
| 7 | int convex_hull(polygon p) { |
| 8 | int n = size(p), l = 0; |
| 9 | sort(p.begin(), p.end(), cmp); |
nothing calls this directly
no outgoing calls
no test coverage detected