Arrays-Wave print

the code is running correctly on custom input but on submitting it showing wrong answer
#include
using namespace std;
int main() {
int n,m,i,j;
cin>>m>>n;
int a[m][n];
for(i=0;i<m;i++)
{ for(j=0;j<n;j++)
{
cin>>a[i][j];
}}
for(j=0;j<n;j++)
{
if(j%2!=0)
{
for(i=m-1;i>=0;i–)
{cout<<a[i][j]<<" “;
}
}
else
{
for(i=0;i<m;i++)
{cout<<a[i][j]<<” ";
}

    }
}
cout<<"END"<<endl;
return 0;

}

@Shreya-Gupta-2383169445069382 please save your code on the ide then share it here.

how do i Save the code?

@Shreya-Gupta-2383169445069382 visit https://ide.codingblocks.com this is the link of official ide of coding blocks where save option is available when you click save button it will generate a URL that URL you have to share but first paste your code on ide then press save button

@Shreya-Gupta-2383169445069382 hey sherya there is only small mistake in your code is that you forget to put comma in between the double quotes so update both the quotes.", "

IMPORTANT NOTE: don’t post link directly you have to give small description of the error that you’re facing with the link if you send only link then api will mark you as spam and you will not able to post your doubt

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.