Matrix search error


i am recieving this error in leetcode and i am not able to understand what is wrong in my code.
alse please explain the meaning of this error.