online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; int main() { string a; string b; string c; string d; string e; string f; string g; string h; cout<<"First I ask what may your name be? "; cin>>a; cout<<"Also, are you a him or a her? "; cin>>b; if(b=="him"){ cout<<"Well hello "; cout<<a; cout<<" you have just reached the age of entering the war.\n"; cout<<"The war has been going on for a short 10,000,000 years, as you know you are a Zacka, we live up to 10,000,000,000 years old.\n"; cout<<"You may find it wierd that our species live so long, and ask why am I not a human? Well humans died out 10,000,000,000,000 years ago.\n"; cout<<"Your parents died 10,000,000 years ago so I have been taking care of you since you were 100,000 years old.\n"; cout<<"It is now time for you to choose your class, since you have warrior, archer, and wizard in you. You can choose any of the three class.\n"; cout<<"The 3 classes are wizard, archer, warrior. Now choose. "; cin>>c; if(c=="wizard"){ cout<<"It looks as though you have choosen the path of a wizard, I will show you your perks later on.\n But now we need to make choice official.\n"; cout<<"Council member 1: We should let the kid become a wizard.\n Wizards are very powerful. His blood will improve his power in spellcasting."; cout<<"Council member 2: We should make him a warrior, the classes are already unbalanced.\n We can balance the ratio of wizards, archers and warriors if he becomes a warrior."; cout<<"Council member 3: We should let him choose, \ninterfering with one who's power is so great is unwise. Let him choose.(Say I choose to be a ___."; cin>>d; } if(c=="warrior"){ cout<<"It looks as though you have choosen the path of a warrior, I will show you your perks later on.\n But now we need to make choice official.\n"; cout<<"Council member 1: We should let the kid become a warrior.\n Warriors are very powerful. His blood will improve his power in swordsplay."; cout<<"Council member 2: We should make him a wizard, the classes are already unbalanced.\n We can balance the ratio of wizards, archers and warriors if he becomes a archer."; cout<<"Council member 3: We should let him choose, \ninterfering with one who's power is so great is unwise. Let him choose.(Say I choose to be a ___."; cin>>d; } if(c=="archer"){ cout<<"It looks as though you have choosen the path of an archer, I will show you your perks later on.\n But now we need to make choice official.\n"; cout<<"Council member 1: We should let the kid become an archer.\n Archers are very powerful. His blood will improve his power in archery."; cout<<"Council member 2: We should make him a wizard, the classes are already unbalanced.\n We can balance the ratio of wizards, archers and warriors if he becomes a wizard."; cout<<"Council member 3: We should let him choose, \ninterfering with one who's power is so great is unwise. Let him choose.(Say I choose to be a ___."; cin>>d; } } if(b=="her"){ cout<<"Well hello "; cout<<a; cout<<" you have just reached the age of entering the war.\n"; cout<<"The war has been going on for a short 10,000,000 years, as you know you are a Zacka, we live up to 10,000,000,000 years old.\n"; cout<<"You may find it wierd that our species live so long, and ask why am I not a human? Well humans died out 10,000,000,000,000 years ago.\n"; cout<<"Your parents died 10,000,000 years ago so I have been taking care of you since you were 100,000 years old.\n"; cout<<"It is now time for you to choose your class, since you have warrior, archer, and wizard in you. You can choose any of the three class.\n"; cout<<"The 3 classes are wizard, archer, warrior. Now choose. "; cin>>c; if(c=="wizard"){ cout<<"It looks as though you have choosen the path of a wizard, I will show you your perks later on.\n But now we need to make choice official.\n"; cout<<"Council member 1: We should let the kid become a wizard.\n Wizards are very powerful. Her blood will improve her power in spellcasting."; cout<<"Council member 2: We should make her a warrior, the classes are already unbalanced.\n We can balance the ratio of wizards, archers and warriors if she becomes a warrior."; cout<<"Council member 3: We should let her choose, \ninterfering with one who's power is so great is unwise. Let her choose.(Say I choose to be a ___."; cin>>d; } if(c=="warrior"){ cout<<"It looks as though you have choosen the path of a warrior, I will show you your perks later on.\n But now we need to make choice official.\n"; cout<<"Council member 1: We should let the kid become a warrior.\n Warriors are very powerful. Her blood will improve her power in swordsplay."; cout<<"Council member 2: We should make her a wizard, the classes are already unbalanced.\n We can balance the ratio of wizards, archers and warriors if she becomes a archer."; cout<<"Council member 3: We should let her choose, \ninterfering with one who's power is so great is unwise. Let her choose.(Say I choose to be a ___."; cin>>d; } if(c=="archer"){ cout<<"It looks as though you have choosen the path of an archer, I will show you your perks later on.\n But now we need to make choice official.\n"; cout<<"Council member 1: We should let the kid become an archer.\n Archers are very powerful. Her blood will improve her power in archery."; cout<<"Council member 2: We should make her a wizard, the classes are already unbalanced.\n We can balance the ratio of wizards, archers and warriors if she becomes a wizard."; cout<<"Council member 3: We should let her choose, \ninterfering with one who's power is so great is unwise. Let her choose.(Say I choose to be a ___."; cin>>d; } } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue