I'm not going to do your homework for you, but. I think the main problem is the way you are trying to store the large number.
Do you understand what this problem is trying to teach you? you cannot store a really large number as an integer. so your cin line is not going to work. you need to come up with a better way of handling the integers and doing the addition/handling overflow.