Sum of two arrays in hb

https://hack.codingblocks.com/contests/c/474/217
https://ide.codingblocks.com/#/s/24036

i am not getting my error
please fix it

As given in the question, the size of the array is as large as 1000, so the number that will be formed by 1000 digits is huge and it can not be stored in a variable in c++. maximum number of digits that can be accomodated is 18 in long long int. So your approach fails for large cases.

HINT:
Try adding numbers as you do on pen and paper, i.e. take the units digits, add, take carry and continue it till you reach the end.

still not able to solve it

https://ide.codingblocks.com/#/s/31051

here is my solution.