Why my code is wrong

#include
using namespace std;

void ri(int a[][1000],int n)
{
for(int col=n-1;col<=0;col–)
{
for(int row=0;row<n;row++)
{
cout<<a[row][col]<<" ";
}
cout<<endl;
}
}

int main()
{

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

Hello @vishalsagar8010 could you please share your link by saving it on ide.codingblocks.com ? i will correct it.