Run Error for test case 1 and 2

pls check:


it passes test case 0 and 4 but is giving run error for test case 2 and 3.
pls help what is causing this and how to prevent them.

i have found the error and resolved pls don’t bother