Problem in submitting

#include

using namespace std;

int main() {

int n;

cin>>n;

int num;

int a[n][n];

for(int i=0;i<n;i++)

    for(int j=0;j<n;j++)
	{
		cin>>num;
		a[n-j-1][i]=num;
	}
for(int i=0;i<n;i++){
	for(int j=0;j<n;j++)
		cout<<a[i][j]<<" ";
	cout<<endl;
}
return 0;

}

hi @iamlovelesh

this is not correct way of doing it
you are not rotating the array instead you are saving array in rotated manner

@iamlovelesh
try once again
the problem is with checker (technical issue)
which is resolved now

if your doubts is resolved mark it as resolved from you doubt section in your couse