Addition of C++ Array Sum program