I have tried and tried to figure out what it is I am have wrong. I have an assignment to create a program that calculates employee's bonus. I think I pretty much have it, but I keep getting an error that I cant figure out and what the error is trying to tell me. If someone could please help I would really appreciate it.
#include <iostream>
#include <string>
using namespace std;
myfunc (int calc_bonus);
int main ( )
{
string name;
int total_sales, bonus;
cin >> name;
cin >> total_sales;
int calc_bonus(int sales){
int temp
if (total_sales < 3001) temp = 0;
if (total_sales > 3000 && < 5001) temp = 50;
if (total_sales > 5000 && < 10000) temp = 100;
if (total_sales > 9999) temp = 250;
return temp
}
cout << “ name's bonus is ” << bonus << endl;
};
// Exit program.
return 0;
}
Here is the error I got from the compiler
Line 21: error: stray '\342' in program
compilation terminated due to -Wfatal-errors.
Again, any assistance would be great! Thanks!