Serach in a row and coloumn wise matrix


In search for an element in a row and col wise sorted matrix…It is compiling sucessfully
but not giving output as zero when running the code.
why ? can u please help?where am i wrong