online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> int main() { int num; int guess; int num_of_guess; int randm_num = rand() % 10 + 1; do { cout << "Enter here a number:" cin >> guess; if(guess > num){ cout << "Lower" << endl; break; } else if(guess < num){ cout << "Bigger" << endl; break; } else { cout << "Bingo! it took you exactly " + num_of_guess + " guesses." << endl; break; } } surprise(); } void surprise() { cout << "HELLO " << name << "!!! :D"; }

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