For this Question: You are given the following
- An Array A of size N
- An integer h

Your task is to print number of elements in A that are greater than h. You are given a total of K such tasks.The first line contains N denoting the size of array 
The next line contains N space- separated integer denoting the elements of array A.
The next line contains an integer K denoting the number of tasks.
The next line contains an integer h.

<b>Constraints</b>
1 <= N <= 1e5
1 <= A[i] <= 1e9
1 <= K <= 1e5
1 <= h <= 1e9For each task, print the number of elements of A that are greater than h.Sample Input:
5
1 5 3 2 4
1
2

Sample Output :
3, I have written this Solution Code: /**
 *      Author : tourist1256
 *      Time   : 2022-01-19 02:44:22
 **/

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    int k;
    cin >> k;
    sort(a.begin(), a.end());
    for (int i = 0; i < k; i++) {
        int temp;
        cin >> temp;
        auto it = upper_bound(a.begin(), a.end(), temp) - a.begin();
        cout << n - it << endl;
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?