Run time error::::how to remove run time error in my code

how to remove run time error in my code

n and m size can be upto 1000 so please take your array size greater than 1000 (rick[1002]),u have taken it of 100

hey, @kailash_01 if you still have any doubt please let me know else please mark this doubt as resolved.
regards,
Devwrat

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.