#include #include #include #include #include using namespace std; bool compare(tuple t1, tuple t2) { if (get(t1) == get(t2)) { return (get(t1) > n; for (int i = 0; i > age >> name; v.push_back(make_tuple(age,name,i)); } sort(v.begin(), v.end(), compare); for (int i = 0; i < n; i+..