Compile is successful but test are failing

why test are failing.

below is my code.

#include
using namespace std;

int main() {

int m,n;
cin>>m>>n;

if(m>1 && m<10){

if(n>1 && n<10){
int a[m][n] = {0};

for(int row =0 ; row<m; row++){
	for(int col= 0; col<n; col++){
		cin >> a[row][col];
	}
	cout << endl;
}

//wave print

for(int col = 0; col<n; col++){
	
	if(col%2 == 0){
			// Even Col- Top Down
			for(int row = 0 ;row<m; row++){
				cout<< a[row][col] << " ";
			}
	}
	else{
		// Bottom up direction

			for(int row = m-1; row >=0;row--){
				cout << a[row][col] << " ";
			}
	}
   
}

}}
cout <<" END";

return 0;

}

hi @roshani1997abr_911f71e73100e81b send the code on ide.codingblocks.com
write save send the url of the page

code is not saves i see hello world @roshani1997abr_911f71e73100e81b

how Am I save a file.

@roshani1997abr_911f71e73100e81b ctrl + s

I saved already. Please check now.

@roshani1997abr_911f71e73100e81b

@roshani1997abr_911f71e73100e81b buddy make it readable atleast

@roshani1997abr_911f71e73100e81b u can refer https://ide.codingblocks.com/s/666695?_ga=2.70129936.1054313609.1660560273-672608080.1602772177

I updated, I made a reverse for column and row.

still is not working.

hi @roshani1997abr_911f71e73100e81b updated https://ide.codingblocks.com/s/671804

Thanks you so much.
I got my issue, what I am making.

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.