Brace mismatch, helps when you indent like:
#include <iostream>
using namespace std;
int main()
{
int userinput, number[15];
char choice;
do
{
for (int i = 0; i < 15; i++)
{
cout << "Please enter a number:\n";
cin >> userinput;
number[i] = userinput;
}
cout << "Do you want to enter another number?";
cin >> choice;
}
while(choice == 'y');
cin.get();
} I also removed the deprecated headers.