你的排序写成这样是15分。
bool cmp(node a,node b){ return a.x<b.x; }
这样是100分。
bool cmp(node a,node b){ if(a.x==b.x)return a.y<b.y; return a.x<b.x; }