| 58 | if (cmp(c)(n->p, p)) return _con(p, n->r, INC(c)); |
| 59 | return true; } |
| 60 | void insert(const pt &p) { _ins(p, root, 0); } |
| 61 | void _ins(const pt &p, node* &n, int c) { |
| 62 | if (!n) n = new node(p, NULL, NULL); |
| 63 | else if (cmp(c)(p, n->p)) _ins(p, n->l, INC(c)); |