Array - sum 2 array

the code seems to work fine on sublime but giving segmentation fault on coding block ide

@pradyumn25jain please share your code ide link

here you go , please have a look

can you tell what seems to be the problem

@pradyumn25jain just remove that taking input from file part. It will be fine. It depends on the compiler, if you submit websites like codechef or codeforces, this will work because by default the ONLINE_JUDGE constant is defined when submitting any code in most online judges.

@pradyumn25jain I hope your doubt is solved now, please mark it as resolved if you got it.

yeah , thanks for that

unable to pass two test cases

test case 0 and test case 3

can you tell what are the test cases

@pradyumn25jain You can try and check for this type of test case:-
5
5 4 3 2 1
5
9 8 7 6 5

yes i fixed it , i wasn’t using the carry in last … thanks