Help with Program

I tried many different things but it keeps telling me:
error: expected '}' at end of input
line 187

I would be very glad if someone would help me
and thanks in advance.

here's all the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#include <iostream>
#include<cmath>
#include<cstdlib>
#include<ctime>
using namespace std;

int main()
{
    int Human;
    int Dwarf;

    char name[10];

    cout << "Welcome, hope you enjoy this game!\n\n";
    cout << "What is your name?\n";
    cin >> name;
    cout << "Hello, " << name << "!!\n\n";

    cout << "What is your race?\n" << endl;
    cout << "1- Human\n" << "2- Dwarf\n" << "3- Orc\n" << "4- Elf\n" << endl;
    int pickRace;

    cout << "Pick your race: ";
    cin >> pickRace;

    switch (pickRace)
    {
    case 1:
        cout << "You picked the Human race.\n" << endl;
    break;

    case 2:
        cout << "You picked the Dwarf race.\n" << endl;
    break;

    case 3:
        cout << "You picked the Orc race.\n" << endl;
    break;

    case 4:
        cout << "You picked the Elf race.\n" << endl;
    break;

    default:
        cout << "Error - Invalid input; only 1, 2, 3, or 4 allowed.\n" << endl;
    }

    cout << "You are in a cell in the dark reaches of the castle... you must find ";
    cout << "a way out or you will be excecuted." << endl;

    int o1;
    cout << "What will you do?" << endl;
    cout << "1- Try to pick the lock\n" << endl;
    cout << "2- Wait till they come... and when they open the door you'll escape\n";
    cin >> o1;

    switch (o1)
    {
    case 1:
        cout << "You try and pick the lock, but it is too hard for you.\n";
        cout << "so you wait until the gaurds come to get you\n" << endl;
    break;

    case 2:
        cout << "You wait patiently until they come... they start to open the door\n";
        cout << "Suddenly you tackle the gaurd then you make a break for it. \n" << endl;
    break;

    default:
        cout << "Error - Invalid input; only 1 or 2 allowed.\n" << endl;
    }

    cout << "You are running out of the cell now and the gaurds start chasing you\n" << endl;
    cout << "You do not look back and you just keep running... soon you reach a\n";
    cout << " hole in the ground that leads to the sewers and without thinking \n";
    cout << "you dive in. You realize that the gaurds will keep chasing you so \n";
    cout << "you take a rusty sword that you find and you confront the gaurds\n" << endl;

    string choice1;
    cout << "Will you...";
    cout << "[1]- Fight\n [2]- Run\n" << endl;

    if (choice1=="1")
{
    double Health = 50;
    double Sword_Sheild = 4;
    double Badguy_Health = 30;
    unsigned Badguy_Damage = time(0);

        while (Badguy_Health >=1 && Badguy_Health >= 1)


        {//master while in combat

            srand(static_cast<unsigned int>(time(0)));

            //Combat
            cout <<" The Badguy attacks!"<<endl;
            cout <<" Your HP: "<<Health;
            cout <<" Badguy HP: "<<Badguy_Health<<endl;

            srand(Badguy_Damage);

            Badguy_Damage = (rand() % 5) +1;

            //Clear screen before start of Combat
            cin.sync();
            cin.get();
            system("cls");

            cout <<" The Badguy did "<<Badguy_Damage<<" Damage"<<endl;

            Health = Health - Badguy_Damage;


            //Displaying HP after combat
            cout <<" Your HP: "<<Health<<endl;
            cout <<" Badguy HP: "<<Badguy_Health<<endl;

            system("pause");


            //Zero HP after combat
            char Attack;

                if(Badguy_Health > 0 && Badguy_Health < 1)
                {
                    cout <<" You are dead"<<endl;

                system("Title   Game Over   ");

                system ("pause");
                return 0;
                }

            cin.sync();
            cin.get();

            //Main Combat

            //Conditions of combat

//Warrior Attacks
    if (Human)

            cout << "Choose a weapon to fight!"<<endl;
            cout << "[R]usty sword: 4 attack"<<endl;
            cin >>Attack;


       {
                if(Attack == 'R' || Attack == 'r')
                {
            Badguy_Damage = (rand() % 10) + 1;
            Badguy_Health = Badguy_Health - Sword_Sheild;
            cout<<" You choose Rusty Sword dealing 3 Damage! "<<endl;
                }

       }

//Wizzard Attacks
       if (Dwarf)

            cout << "Choose a weapon to fight!"<<endl;
            cout << "[R]usty sword: 4 attack"<<endl;
            cin >>Attack;

        {
                if(Attack == 'R' || Attack == 'r')
                {
            Badguy_Damage = (rand() % 10) + 1;
            Badguy_Health = Badguy_Health - Sword_Sheild ;
            cout<<" You choose rusty sword dealing 3 Damage! "<<endl;
                }

        }

            //If userName wins
                if(Badguy_Health <= 0 && Health > 0)
                {
            cout <<" You did it, "<< name << " you won!"<<endl;
                }


    return 0;

}
You are missing a closing brace for line 84.

Also, be careful: In c++ only one line is permitted without a brace after an if statement:
1
2
3
4
if(this)
  this;
else
  this;


is okay, but if you do this:
1
2
3
4
5
if(this)
  this;
  another thing;
else
 this;


will drive the compiler crazy or produce unexpected results.
Thank you so much for the advice.
Topic archived. No new replies allowed.