Sum it up robots question

bro can you tell me error in my code
here is my code

Hey @Love
You didn’t get the question correctly. It states that you can take any 5*5 subgrid of the input matrix and change all -1 to 0 in it. All you have to do is basically try to set subgrids 0->4, 1->5, so on to h-4 -> h in each case to 0 and then see what is the maximum sum you can get. Return max of all such possible subgrid states.

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.