Test case error

#include
using namespace std;

int main()

{
int m,n;

int a[100][100]={0};

cin>>m>>n;

for(int row=0;row<=m-1;row++)
{
	for(int column=0;column<=n-1;column++)
	{   
		
		cin>>a[row][column];
	}
}

for(int column=0;column<=n-1;column++)
{
	if(column%2==0)
	{
		 for(int row=0;row<=n-1;row++)
		 {
		 	cout<<a[row][column]<<",";
		 }
	}
	else
	{
		for(int row=m-1;row>=0;row--)
		    		{
			cout<<a[row][column]<<",";
		}

	}

} 
cout<<"END";   
return 0;

}

please save your code at


and send the link genrated

for(int row=0;row<=n-1;row++)

correct one is

for(int row=0;row<=m-1;row++)

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.