Matrix search challenge in array

the code is giving wrong output

https://ide.codingblocks.com/s/103177 . here is the link but it is not working here in the challenge section

Hello @Tanya25,

But, when i submitted your code, it was passing all test cases.
So, are you sure about your doubt?

yes i am sure with my doubt. whenever i try submitting it it fails all the test cases. i dont know why ?

If you are talking about the following question:

Then it is passing all the test cases for your code, if i submit it.

I have shared your issue with your mentors.
Still i’ll suggest you to try one more time.

Also, this time do two things before submitting your code:

  1. Check if you have selected the right language i.e. C++14
    2.hard refresh the page.

Hope, this would help.