What wrong in code test case 1 4 5 is wrong

#include
using namespace std;
int main() {
int m,n;
int k,s;
cin>>n>>m>>k>>s;
char a[m][n];
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
cin>>a[i][j];
}
}
for(int i=0;i<m;i++){
int j=0;
for(j=0;j<n;j++){
if(a[i][j]==’.’){
s=s-2;
}
else if(a[i][j]==’*’){
s=s+5;
}
else{

            break;
        }
        if(j!=n-1){
        s=s-1;
    }
    }
    
}
if(s>=k){
    cout<<"Yes"<<"\n";
    cout<<s;
}
else{
    cout<<"No";
}
return 0;

}

hi dinesh
save your code to online ode of coding block and then post the link here

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.