int main() { multiset<location,compare_set> L;//multiset可以让键值是重复的 int N;//首先输入坐标数目 cin >> N; for (int i = 0; i < N; i++) { int x, y; cin >> x >> y; L.insert(location(x, y)); }
for (multiset<location>::iterator it = L.begin(); it != L.end(); it++) { cout << it->x << ' ' << it->y << endl; }