Help out Piyush to escape the park. His escape is successful if he is able to return home with atleast K strength.there are obstacles in path.there is decreasing of strength after traversing on some characters

#include
using namespace std;
int main() { int i,j,n,m,s,k;
cin>>n;
cin>>m;
cin>>k;
cin>>s;
char s1[10][10];
for(i=0;i<n;i++)
{for(j=0;j<m;j++)
{
cin>>s1[i][j];
}
}
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
{
if(s1[i][j]==’.’)
s=s-3;
else if(s1[i][j]==’*’)
s=s+4;
else if(s1[i][j]==’#’)
{s=s+1;
break;
}

}
 }
 if(s>=k)
 {
     cout<<"yes"<<endl;
     cout<<s;
 }
 else
 cout<<"no";

}

i am geetting all the cases error .want to know the error and also the best way of doing this

hey @SOHAN please share your code through ide.codingblocks.com

i hope you were able to solve this question, in case you werent able to do so please refer to the given code

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.