Error in submitting code

i am submitting the same code explained in video of Piyush and magical park question of hacker blocks but it is not passing all test cases

hello @tejuschaturvedi0
pls save ur code here-> https://ide.codingblocks.com/
and share its link with me

Sir I am not able to. Write code there or paste my code as it does not write anything when I type.
So I am pasting my code here.
#include
using namespace std;

void magicalpark(char a[][100], int m, int n, int k, int s){

bool success= true;

for (int i=0; i<=m-1;i++){

	for (int j=0; j<=n-1; j++){

		char ch= a[i][j];

		if (s<k){
			break;
		}
		 
		if (ch=='.'){
			s-=2;
		} 
		else if(ch=='*'){
			s+=5;
		}
		else{
			break;
		}

		if (j!=n-1){
			s-=1;
		}
	}
}
if (success){
	cout<<"Yes"<<endl;
	cout<<s<<endl;
}
else{
	cout<<"No"<<endl;
}

}

int main() {

int m,n,k,s;
cin>>m>>n>>k>>s;

char park[100][100];

for (int i=0; i<m;i++){
	for(int j=0;j<n;j++){
	cin>>park[i][j];
	}
}
magicalpark(park,m,n,k,s);
return 0;

}

bro i cant directly copy- paste ur code from here, as it will introduce more error becuase here syntax dont render properly.

follow this->
a)
go to this link -> https://ide.codingblocks.com/

b) paste ur code
c) press ctrl + s and then save
d) a link will be generated in ur search bar(where u type for searching) share that link with me

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.