Rat Chases Cheese

plz correct the error in the code and tell me the efficient way to pass 2D array in the function

error: cannot convert ‘char ()[m]’ to 'char ()[10]’ for argument ‘1’ to ‘bool ratChasesCheese(char ()[10], int ()[10], int, int, int, int)’
bool success=ratChasesCheese(maze,sol,0,0,n-1,m-1);

problem link : https://online.codingblocks.com/app/player/39658/content/37376/5020/code-challenge?code=xefoLC39J4Jce0QLv8czUhe57qAg8TZd

code : https://ide.codingblocks.com/s/183225

@sengarankit98 you have defined maze as maze[n][m] and passing them with values[10][10] this is why this error is showing.

define maze as maze[10][10].