I hope this doesn't come across as confusing. I am doing something wrong, with a "error C2059: syntax error: ';' - line 45; error C2059: syntax error : '/' - line 47. I'm not sure, but maybe it has something to do with the %, and that I didn't use a needed header file to do this type of math. Please help me out, I am so stumped.
#include <iostream>
using namespace std;
int main()
{
double Pop;
double CF;
double RaceBonus;
double TO;
double TotalBuildings;
double Research;
double temp;
double temp2;
double temp3;
double temp4;
double income;
cout << "Enter population: ";
cin >> Pop;
cout << endl;
cout << "Enter total Cash Factories: ";
cin >> CF;
cout << endl;
cout << "Enter your Income Race Bonus: ";
cin >> RaceBonus;
cout << endl;
cout << "Enter total Tax Offices: ";
cin >> TO;
cout << endl;
cout << "Enter your total Buildings: ";
cin >> TotalBuildings;
cout << endl;
cout << "Enter your researched Economy Bonus: ";
cin >> Research;
cout << endl;
temp = 100+ (Pop /30) + (CF *8);
temp2 = 1+ RaceBonus / 100%;
temp3 = 1+ 2 * TO / TotalBuildings;
temp4 = 1+ Research% / 100%;
income = temp * temp2 * temp3 * temp4;
cout << "Your total Income is: " << income << endl;
cout << "Press <Return> to quit..." << endl;
cin.get();
cin.get();
return 0;
}