For this Question: Write a program that creates an N*N matrix. Fill each cell with the sum of row number and column number (based on 0 indexes, ie indices begin from base 0), take its transpose and print it. 
Where the transpose of a matrix is a new matrix whose rows and the columns are interchanged to that of  original matrix.Input contains a single integer N.

Constraints:-
1<=N<=500Print the NxN matrix.Sample input
2

Sample output
0 1
1 2

Explanation:-
0+0    0+1
1+0    1+1

Sample Input:-
3

Sample Output:-
0 1 2 
1 2 3 
2 3 4

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




int main()
{


    int n;
    cin>>n;
    int arr[n][n];
    for(int i=0;i<n;i++){
            for(int j=0;j<n;j++){
        arr[i][j]=i+j;

    }}
for(int i=0;i<n;i++){
            for(int j=0;j<n;j++){
        cout<<arr[i][j]<<" ";

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