include <iostream>
int main()
{
const int ARRAY_SIZE = 5;
int sum = 0;
int array[ARRAY_SIZE] = {1, 2, 3, 4, 5}; //or whatever you want the array to be
//change ARRAY_SIZE accordingly
for(int i=0; i < ARRAY_SIZE; i++)
sum += array[i]; //add up array
std::cout<<sum; //print out...