Can't run my simple payroll system.

Why I can't run these line of codes

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
  #include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
using namespace std;

int main(){

int empname;
int emplvl;
string mystr;
float emprate;
float empsal;
float days;
float gross;
float sss;
float pagibig;
float tax;


cout << setw(50) << "Payroll System";
cout << "\n" << "\n" << "Enter Employee name: ";
getline(cin, mystr);
stringstream(mystr) >> empname;
cout<<"Enter Employee Level: ";
getline(cin, mystr);
stringstream(mystr) >> emplvl;

if  (emplvl = 5 || emplvl > 5)
	{
		cout << "Please choose from 1 to 4";
	}else
	  { 
		if (emplvl == 1)
		{
			emprate = 400;
		}else if(emplvl == 2){
			emprate = 450;
		}else if(emplvl == 3){
			emprate = 500;
		}else if (emplvl == 4){
			emprate = 550;
		}
	  cout << "Your emprate is: " << emprate << "/n";
	  }	   

cout << "Total days of work";
getline(cin,mystr);
stringstream(mystr)>> days;
empsal = emprate * days;
cout << "Gross income: " << empsal;

if(emplvl=5 || emplvl>5){
cout << "Please select from 1 to 4"; }else{
if (emplvl==1){
	sss=50;
}else if(emplvl == 2){
	sss=55;
}else if(emplvl == 3){
	sss=60;
}else if(emplvl == 4){
	sss=65;
}
pagibig = empsal*0.02;
tax = pagibig + sss;
gross = empsal - tax;
cout<<"\n"<<"Total Gross income is: " << gross;

}



return 0;
}




I always get this error:

 
Unsuccessful build. 


I'm using quincy compiler. thanks in advance ^_^
There is no error preventing compilation, try updating your compiler.
Quincy? I would suggest using Code Blocks or C++. I don't see any error in the code an it compiles well in Code Blocks. Like L B said, update, or get a new compiler.
Topic archived. No new replies allowed.