【坑】different compare function (priority, vector,...)
priority_queue<Point, vector<Point>, pqCmp>
struct pqCmp {
bool operator() (const Point& a, const Point& b) const {
return distance(a,center) < distance(b, center);
}
};
vector<Point> v;
sort(v.begin(), v.end(), cmp);
static bool cmp(const Point& a, const Point& b) {
return distance(a, center) < distance(b, center);
}