All testcases are giving runerror .please reply asap

Hi @shakul
Run error is because you are initializing array a and b with size m and n before the user enter n and m. So to get rid of run error just cin n and m before declaration of array a and b.

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.