For this Question: Mark is asked to take a group photo of 2n people. The i- th person has height h<sub>i</sub> units. To do so, he ordered these people into two rows, the front row and the back row, each consisting of n people. However, to ensure that everyone is seen properly, the j- th person of the back row must be at least x units taller than the j- th person of the front row for each j between 1 and n, inclusive.
Help Mark determine if this is possible.The first line of the input consists of two space- separated integers n and x - the number of people in each row and the minimum difference Mark wants. The second line of the input consists of 2n space separated integers denoting the height of each person in units.

<b>Constraints</b>
1 &le; n &le; 100
1 &le; x &le; 10<sup>3</sup>
1 &le; h<sub>i</sub> &le; 10<sup>3</sup>Print "YES" if Mark could arrange people satisfying his condition and "NO" otherwise.<b>Sample Input 1</b>
3 6
1 3 9 10 12 16
<b>Sample Output 1</b>
Yes

<b>Sample Input 2</b>
3 1
2 5 2 2 2 5
<b>Sample Output 2</b>
No, I have written this Solution Code: #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
#define int long long int
#define endl '\n'
void fastio()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
}
using namespace __gnu_pbds;
const int M = 1e9 + 7;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
 
// Author:Abhas
void solution()
{
    int n, x;
    cin >> n >> x;
    vector<int> a(2 * n);
    map<int, int> m;
    for (int i = 0; i < 2 * n; i++)
    {
        cin >> a[i];
        // m[a[i]]++;
    }
    sort(a.begin(), a.end());
    int i = 0, j = n;
    while (i < n)
    {
        if (a[j] < (a[i] + x))
        {
            cout << "No" << endl;
            return;
        }
        i++;
        j++;
    }
    cout << "Yes" << endl;
}
signed main()
{
    fastio();
    int t = 1;
    //cin >> t;
    while (t--)
    {
        solution();
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?