intmain() { for (int i = 0; i < MAX; i++) sort[i] = &list[i]; int n; while (scanf(" %d", &n) == 1) { for (int i = 0; i < n; i++) scanf(" %d %d", &list[i].x, &list[i].y); qsort(sort, n, sizeof(Point*), cmp); for (int i = 0; i < n; i++) printf("%d %d\n", sort[i]->x, sort[i]->y); } return0; }