Why it is showing error

#include <bits/stdc++.h>
using namespace std;

void rotate2d(int **a,int n){

    int b[n]={0};
    int c[n]={0};
    for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
        b[i][j]=a[j][i];
    }
    for(int j=0;j<n;j++){
        c[i][j]=b[i][n-j];
        cout<<c[i][j];
    }
    }

}
int main(){
int t;
cin>>t;
while(t–){
int n;
cin>>n;
int a[][n];
for(int i=0;i<n;i++){
for(j=0;j<n;j++){
cin>>a[i][j];
}
}
cout<<rotate2d(a,n)<<endl;
}
return 0;

hi @mvarun975_a7021058d653891d please share the code in ide.codingblocks.com
write
save (ctrl + s)
send the url of the page

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.