struct node{ int x,y; bool operator<(const node &rhs)const{ if(x==rhs.x){ return y<rhs.x; } else return x<rhs.x;} };