What is wrong is this?

Use these conditions
if(S<K)
{
break;
}
else
if(ar[i][j]==’.’)
{
S=S-2;
S–;
}
else
if(ar[i][j]==’*’)
{
S=S+5;
S–;
}
else
if(ar[i][j]==’#’)
{
N=N+1;
}
else
if(ar[i][j]==’#’ && i==N-1)
{
break;
}
and then try to submit your code