Matrix seach testcase 0 run error

testcase 0 giving run error

@Rakshitgarg99
hello rakshit ,
u have not declared array size correclty it should be a[n+1][m+1]

but why we have to do that as i am iterating over 1 to <=num

int a[n] will declare n size array right?
which is from index 0 to index n-1 .
in ur case u want to access index n for that u need to declare array with size n+1

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.