My code is showing run error for one of the test cases

please correct my code where it is wrong
it shows run error in one test cases in the other it shows success

Hi Arya,
just a small mistake. in ques it is mentioned that N < 1000 while u fixed the array size to 10 x 10… make it 1000 x 1000… it will pass all test cases…
here’s ur corrected code https://ide.codingblocks.com/s/617815

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.