the code seems to work fine on sublime but giving segmentation fault on coding block ide
Array - sum 2 array
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.
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
yes i fixed it , i wasn’t using the carry in last … thanks