MERGE SORT: RUN TIME ERROR

CORRECT OUTPUT WHILE COMPILING BUT RUN TIME ERROR

hello @mverma_be19

a)
image
use e+1 in place of 1000

b)
image

use while loop in place of if.