Code is not submiting

#include
using namespace std;
int main() {
int c,r,a[100][100];
cin>>c>>r;
for(int i=0;i<c;i++)
{
for(int j=0;i<r;j++)
{
cin>>a[i][j];
}
}
for(int i=0;i<c;i++)
{
if(i%2==0)
{
for(int j=c;j>=0;jā€“)
cout<<a[j][i];
}
else
{
for(int j=0;j<c;j++)
cout<<a[i][j];
}
}
return 0;
}

hey @aviral989, please elaborate what error is it showing while submission

sir no output https://ide.codingblocks.com/s/146038

hey @aviral989, I have modified your code it is working fine now https://ide.codingblocks.com/s/146186