For this Question: The Newton City is going to participate in a Basket Ball tournament. You have been made the coordinator for the final team selection committee. 
Lot of applications have been received and you are given with a two integer arrays. First array, height[], stores the height of the player while the second array, basketsScored[], has the number of Baskets scored for each player.
To find the top K players, you need to choose players according to their heights, that means greater the height, more suitable is the player. If height of two players is same then consider the player with greater number of baskets.
Print the heights and the baskets of the top K players.First line of the input takes the number of test cases, T. Further, for each test case, first line contains two space separated integers, N and K. Next two lines contains N space separated integers denoting the height of the players and basketsScored.

Constraints:
1 <= N <= 10^6
1 <= K <= N
1 <= height[i] <= 10^6
0 <= basketsScored[i] <= 10^6For each test case, print the K players on next lines and in each line print the value of height and basketsScored with space separation.Input:
5 3
1 3 3 3 5
1 2 3 1 2

Output:
5 2
3 3
3 2

Explanation: The top 3 players will be the one with greater heights, and the players with larger no. of baskets in case of same heights., I have written this Solution Code: #include <bits/stdc++.h> // header file includes every Standard library
using namespace std;

int main() {
	// Your code here
    int n, k; cin>>n>>k;
    int height[n], basket[n];
    for(int i=0; i<n; i++){
        cin>>height[i];
    }
    vector<pair<int,int>> vp;
    for(int i=0; i<n; i++){
        cin>>basket[i];
        vp.push_back({height[i], basket[i]});
    }
    auto comp = [&](pair<int, int> p1, pair<int, int> p2){
        if(p1.first == p2.first){
            return p1.second > p2.second;
        }
        return p1.first > p2.first;
    };
    sort(vp.begin(), vp.end(), comp);
    for(int i=0; i<k; i++){
        cout<<vp[i].first<<" "<<vp[i].second<<endl;
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?