hi
actually u dont need a compact biginteger class found & discussed in the board.
u need a structure with only addition function.
so declare a structure(take help from ur c++ book) with the variables.
take input as a string.
& for each character in the string subtruct '0' to get the desired number ...