For this Question: Peter Parker is taking part in a competition where Mr Tony Stark has come to see Peter lift the cup. But Tony can't tell what position Peter is on since the school authorities didn't display a leaderboard. Help Tony Identify which rank is Peter on by seeing his victory status in different rounds. Points are awarded on solving every question based on the difficulty level of the question which are divided into subcategories. The player with the highest score is ranked number 1 on the leaderboard. Players who have equal scores receive the same ranking number, and the next player(s) receive the immediately following ranking number.The first line contains an integer n, the number of participants on the leaderboard. The next line contains n space- separated integers containing the leaderboard points in decreasing order in the competition. The next line contains an integer m, denoting the number of times Peter is attempting the question. The last line contains m space- separated integers containing Peter's score in each attempt in the competition.

<b>Constraints:-</b>
1 <= n <= 10<sup>5</sup>
1 <= m <= 10<sup>3</sup>
1 <= points, score <= 10<sup>7</sup>

Note:-
In the existing leaderboard, points are in descending order. Peter's points are in ascending order.Print m integers indicating Peter's rank in each competition.Sample Input:-
7
100 100 50 40 40 20 10
4
5 25 50 120

Sample Output:-
6
4
2
1, I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;

int main(){
   //   freopen("ou.txt", "r", stdin);

  //   freopen("output.txt", "w", stdout);
  unsigned long n, m, i, tmp;
cin>> n;
  stack<unsigned long> scores;
  for (i = 0; i< n; ++i) {
cin>>tmp;
    if (scores.empty() || scores.top() != tmp) scores.push(tmp);
  }
cin>> m;
  for (i = 0; i< m; ++i) {
cin>>tmp;
    while (!scores.empty() &&tmp>= scores.top()) scores.pop();
cout<< (scores.size() + 1) <<endl;
  }
  return 0;
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?