What is this error

Ok, I am getting an error stating that
Error 1 error C1075: end of file found before the left brace '{' at ' was matched c

Would someone please tell me what I am doing wrong?


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
#include <iostream>
#include <iomanip>

using namespace std;
int main ()
{
	// variables
	double salary = 0.0;
	double RATE = .02;

	// enter salary
	cout << "Salary (-1 to stop): ";
	cin >> salary;

	// display raises with 2 decimal places
	cout << fixed << setprecision(2);

	//begin loop 
	while (salary != -1)
	{
		cout << "Annual Raises for next three years: " << endl;

		// while loop to calculate annual raises
		while (RATE < .06)
		{
			// display annual raise amount
			cout << RATE * 100 << "% raise: ";
			cout << salary * RATE << endl;

			// update salary value and annual raise rate.
			salary += (salary * RATE);
			RATE += .01;

			//enter salary

			cout << "Salary (-1 to stop): ";
			cin >> salary;

			// reset variables
			RATE = .02;

		} //end of loop
		return 0;
	}	// end of file 
Last edited on
it means you forgot the } to close the main function?
Thank you.
Topic archived. No new replies allowed.