Magical probelm error

getting wrong answer, what’s wrong in this plz help me.

#include
using namespace std;

void magical_park(char a[][100],int n, int m, int k,int s )
{
// bool success = true;
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
char ch = a[i][j];
/* if(s<k)
{
success = false;
break;
}/
if(ch == '
’)
{
s +=5;
}
else if(ch == ‘.’)
{
s = s-2;
}
else
{
break;
}
if(j!=n-1)
{
s–;
}
}
}
if(s>k)
{
cout<<“Yes”<<"\n";
cout<<s;
}
else
{
cout<<“No”<<"\n";
cout<<s;
}
}
int main()
{
char park[100][100];
int n,m,k,s;
//cout<<“enter value”<<"\n";
cin>>n>>m>>k>>s;
// cout<<“enter the content ofd matrix”<<"\n";
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
cin>>park[i][j];
}
}
magical_park(park,m,n,s,k);
}