only 1 test case is wrong and i am not able to understand where my code is wrong
my code is-#include
using namespace std;
int main() {
int n,m;
cin>>n>>m;
int k,s;
cin>>k>>s;
char a[n][m];
int i,j;
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
{
cin>>a[i][j];
}
}
for(i=0;i<n;i++)
{
if(s<k)
{
break;
}
else
{
for(j=0;j<m;j++)
{
if(s<k)
{
break;
}
else
{
if(a[i][j]==’*’)
{
s=s+4;
}
else if(a[i][j]==’.’)
{
s=s-3;
}
else if(a[i][j]==’#’)
{
break;
}
}
}
}
}
if(s<k)
{
cout<<"No"<<endl;
}
else
{
cout<<"Yes"<<endl;
cout<<s;
}
return 0;
}