Only "END" is printed in output.I tried in IDEs with same output is correct.Same problem with other question array element is not printed

#include
using namespace std;
int main() {

int n,m;

cin>>n>>m;

int arr[n][m];

for(int i=0;i<n;i++)
{
	for(int j=0;j<m;j++)
	cin>>arr[i][j];
}
  

for(int j=0;j<m;j++)
{
 
 if(j%2==0)
 {
	 for(int i=0;i<n;i++)
	 cout<<arr[i][j]<<" ";
 }
 else
 {
	 for(int i=n-1;i>=0;i--)
       cout<<arr[i][j]<<" ";
 }

}

cout<<"END";  

return 0;

}

@711tri
Hello Ayush ,
please save ur code on coding blocks ide and share the generated link here.because your code is not rendering properly here.

@711tri
hey ayush , your code is passing all test cases.can u please try submitting again