Sum_of_two_arrays

My code is not compatible for all test case may you please fix this code “https://ide.codingblocks.com/s/342823

consider a test case like
3
5 5 4
3
7 7 8
the answer you get is 13, 3, 2, END but it should be 1, 3, 3, 2, END
correct this