Sum Of Two Arrays

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

You are approaching it incorrectly. You can not form a number in C++ which has 1000 digits. So numa and numb wont be created correctly. Try some other approach.

Hint: Add two numbers like you do on pen paper, starting from least significant digit(last element of array) and adding them digit by digit and taking care of carry.