Wrong answer in one test case

where my code -“https://ide.codingblocks.com/s/77899
is incorrect, in which case it is giving error?

Your code is not having these 2 conditions as per the question , include them and then try to submit your code after that
if(ar[i][j]==’#’)
{
N=N+1;
}
else
if(ar[i][j]==’#’ && i==N-1)
{
break;
}

N=N+1; //what does this line means ?

Still My code is wrong on 1 test case -“https://ide.codingblocks.com/s/78127

Ayush, try to submit it now, I have corrected your code,