online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { //Hello! CNroguesarentallbad here. To use the code, just press the big green "Run" up top, click on the black box at //the bottom, and start entering in troop/ship numbers. Only do the number, no commas. i.e. "40000" (without the parentheses), //instead of "40,000" or "40000 militiamen". Anyway, have fun and hope this saved you some time! int A, B, C, D, E, F, G, H, I; cout << "Number of Militia Troops (Only numbers, no commas): "; cin >> A; cout << "\nNumber of Light Infantry: "; cin >> B; cout << "\nNumber of Heavy Infantry: "; cin >> C; cout << "\nNumber of Light Cavalry: "; cin >> D; cout << "\nNumber of Heavy Cavalry: "; cin >> E; cout << "\nNumber of Small (Cargo) Ships: "; cin >> F; cout << "\nNumber of Small Warships: "; cin >> G; cout << "\nNumber of Large Warships: "; cin >> H; I = F*20 + G*50 + H*80; cout << "\nThe Number of Sailors Needed is: " << I << endl; cout << "The total cost of your army in Solidii is: " << ((1*A+2*B+4*C+3*D+5*E+I)*1.5)+(75*G+130*H)+A+B+C+D+E+I+(1*A+2*B+4*C+3*D+5*E+I)/25/4; 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