Compiling successfully but test cases are failing

code link :- https://ide.codingblocks.com/s/583382

hi… there were some errors in ur code… i have corrected ur code

@Vaibhav277 can you please tell me where is the error in my code ? I mean which test cases are failing ? thank you

ig ur code not passing even a single test case… try to run the sample input. u would get to know the error

can you please give me an example where it is failing ?

4 4
11 12 13 14
21 22 23 24
31 32 33 34
41 42 43 44

ur op
image

expected op

okk , my fault, I thought that I have to start from 14.

i hope ur doubt is cleared now

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.