For this Question: Given a matrix of N*N dimensions (Mat). Print the matrix rotated by 90 degrees and 180 degrees.The first line contains N. 
N lines follow each containing N space-separated integers.

<b>Constraints</b>
2 <= N <= 100
1 <= Mat[i][j] <= 10000Output 2*N+1 lines. 
First N lines should contain the Matrix rotated by 90 degrees.
Then print a blank line.
Then N lines should contain the Matrix rotated by 180 degrees.Sample Input 1:
2
3 4 
7 6 

Sample Output 1:
7 3 
6 4 

6 7 
4 3

Sample Input 2:
2
1 2
3 4

Sample Output 2:
3 1
4 2

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

#define N 1000

// Function to rotate the matrix 90 degree clockwise
void rotate90Clockwise(int a[][N],int n)
{

    // Traverse each cycle
    for (int i = 0; i < n / 2; i++) {
        for (int j = i; j < n - i - 1; j++) {

            // Swap elements of each cycle
            // in clockwise direction
            int temp = a[i][j];
            a[i][j] = a[n - 1 - j][i];
            a[n - 1 - j][i] = a[n - 1 - i][n - 1 - j];
            a[n - 1 - i][n - 1 - j] = a[j][n - 1 - i];
            a[j][n - 1 - i] = temp;
        }
    }
}

// Function for print matrix
void printMatrix(int arr[][N],int n)
{
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++)
            cout << arr[i][j] << " ";
        cout << '\n';
    }
}

// Driver code
int main()
{


    int n;
    cin>>n;
    int arr[n][N];
    for(int i=0;i<n;i++){
            for(int j=0;j<n;j++){
        cin>>arr[i][j];
    }}
    rotate90Clockwise(arr,n);
    printMatrix(arr,n);
cout<<endl;
    rotate90Clockwise(arr,n);
    printMatrix(arr,n);
    return 0;
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?