Why am i getting run error?

Please check my code for expand the pond problem. I am getting correct answer for only 2 test cases and run error in the remaining test cases.

Link: https://ide.codingblocks.com/s/259416

Hey, i don’t understand how you are making call to flood fill and solve function?


This is my code just go through it.It is quite similar to your code.I have just used bfs.If you find any difficulty in understanding the code,please let me know

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.