For this Question: There is an integer q is given as input.You are asked q queries each of which can be of type 1 or type 2. 
Type 1 : Report the area of square having side length S.
Type 2 : Report the area of rectangle of having side lengths L and R.The first line of the input contains single integer Q, number of queries.
Next Q line contains the queries. 
Each query first contains type of query
If query is of type one then you are given a single integer S as input.
If query is of type two then you are given two integers L and R as input.

Constraints
1 <= Q <= 25
1 <= T <= 2
1 <= S, L, R <= 10<sup>3</sup>Output Q line each containing answer to the asked query.Sample Input
2
2 5 4
1 5

Sample Output
20
25, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;

int main()
{
int n;
cin>>n;
int x;
for(int i=0;i<n;i++){
    cin>>x;
    if(x==1){
        cin>>x;
        cout<<x*x<<endl;
    }
    else{
        int a,b;
        cin>>a>>b;
        cout<<a*b<<endl;
    }
}
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?