Okay so I keep getting the error "end of file found before the left brace '{' " and I have no idea where to find it. Also got an error " conversion from 'time_t' to 'unsigned int', possible loss of data"

here's the code it's not complete, but in order to continue, I need to figure out this error

[code]#include<iostream>
#include<fstream>
#include<string>
#include<ctime>

using namespace std;

int main()

{

int menuChoice = 0;
int choice;
int choice1;
int choice2;
int option = 0;
int score = 0;
int randomNumber = 0;
int highScore = 0;
int counter = 0;
srand(time(NULL));
string name;
ifstream infile;
ofstream outfile;

cout<<"\n\nWelcome to the World of Contingency\n\n";
cout<<"Enter your first name here:";
getline (cin, name);

cout<<"Welcome: "<<name<<"\n "<<endl;

do
{
cout<<"Please choose from the following menu:\n";
cout<<"1. See Rules\n2. Play Game\n3. Quit\n\n";

cout<<"Enter your choice here: \n\n";
cin>>menuChoice;


if(menuChoice == 1)
{
cout<<"You have chosen to see the rules.\n\n";
cout<<"You will be shown three menus: one to choose your character,\n";
cout<<"one to choose your starting point, and one to choose your weapon.\n";
cout<<"you will be awarded points based on your selection.\n\n\n";

}
else if(menuChoice == 2)
{
do
{
cout<<"Please Choose your character from the following menu\n";
cout<<"\t1) Troll\n\t2) Gnome\n\t3) Human\n";
cin>>choice;

if(choice == 1){
cout<<"You have selected to be a troll!\n\n";
cout<<"Please choose your starting location!\n\n";
cout<<" 1. water \n 2. land \n 3. air\n\n";
cin>>choice1;
}
else if(choice == 2){
cout<<"2\n";
cout<<"You have selected to be a gnome!\n\n";
cout<<"Please choose your starting location!\n\n";
cout<<" 1. water \n 2. land \n 3. air\n\n";
cin>>choice1;
}
else{
cout<<"3\n";
cout<<"You have selected to be a human!\n\n";
cout<<"Please choose your starting location!\n\n";
cout<<" 1. water \n 2. land \n 3. air\n\n";
cin>>choice1;
}
{
while(choice1 <= 3 && choice >= 1)
{

do{
cout<<"Please Choose your character from the following menu\n";
cout<<"\t1) Troll\n\t2) Gnome\n\t3) Human\n";
cin>>choice1;

if(choice1 == 1){
cout<<"You have selected to be a troll!\n\n";
cout<<"Please choose your starting location!\n\n";
cout<<" 1. water \n 2. land \n 3. air\n\n";
cin>>choice1;
}
else if(choice1 == 2){
cout<<"2\n";
cout<<"You have selected to be a gnome!\n\n";
cout<<"Please choose your starting location!\n\n";
cout<<" 1. water \n 2. land \n 3. air\n\n";
cin>>choice1;
}
else{
cout<<"3\n";
cout<<"You have selected to be a human!\n\n";
cout<<"Please choose your starting location!\n\n";
cout<<" 1. water \n 2. land \n 3. air\n\n";
cin>>choice1;
}


}

while(choice != 3);





}
if(menuChoice == 3)
{

//display good bye
cout<<"Good Bye.\n\n";
}

else
{
//display Invalid
cout<<"Invalid. You must choose 1 - 3 from the menu.\n";

}

{

while (menuChoice != 3);
}



return 0;

}[Icode]



Any help would be appreciated! Thanks!