restrictment 91 Posting Whiz in Training

How do I add an array? I tried this:

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
	int i, numEntered, total;
	int number[10];

	for (i = 0; i <= 9; i++)  
	{
		cout<<"Number: ";
		cin>>number[i]; 
		numEntered = number[i];
	}

	for (int i = 0; i < 10; i++)
	{
		total = total + number[i];
	}
	cout << total;

	system("pause");
	return 0;
}

***Edit: NVM, I figured it out..I had it as number[2], when it should have been number[10]! >.<