First digit of my output is wrong,what is the problem in this code?

@rohitkandpal683
hello rohit,
image
here u need to push d in place of sum

before sum i push d in my vector here

increase ur array size .

when i give input 4 [ 1 0 2 9] 5 [3 4 5 6 7] it give output 1,5,5,9,6

in line no 36 it should be b[j] in place of a[j]

thanks for help ,now all the test cases passed