void magicalpark(char ch[][100],int m,int n,int k,int s)
{
bool success=true;
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
{
char ch=ch[i][j]; // what does this statement do here?
if(s<k)
{
Piyush and magical brick
char ch = ch[i][j], puts variable with name ch equal to element at position i,j in character matrix, and Please rename the variable to something different than matrix name, char c = ch[i][j] would be fine.