For this Question: There are N trees in Terry's front yard. He is supposed to measures the height of each tree and find the average height of trees in his yard.  What is the average height of a tree in Terry's front yard?

Note:- Print your answer as floor value (average height)The first line contains N: numbers of tree. 
Then follows N lines represents the height of each tree.

Constraint:-
1 <= n <= 100000
1 <= a[i] <= 100000Print the average height of all the trees in the yardInput
5
6
8 
34 
9 
3

Output
12

Explanation:-
Sum of heights =60
Average of heights =60/5

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


int main(){
long long  n,k;
cin>>n;
int a[n];
long long sum=0;
for(int i=0;i<n;i++){
    cin>>a[i];
    sum+=a[i];

}
cout<<sum/n;




}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?