online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> using namespace std; string randomVoid() { cout << "hello, this is a random void! (function)"<<endl; cout << "what is your favorite hobby?"<<endl; string userAnswer; cin >> userAnswer; if (userAnswer == "coding" || userAnswer=="programming") { cout << "cool!" << endl; } else { cout << "nice" << endl; } return 0; } void congratulations() { cout << "if you see this message, it might mean that you were able to solve this puzzle, congrats!"; return; } int main() { cout << "Hello world from the main function!" << endl; int x = 15; cout << x + 213 << endl; congratulations(); randomVoid(); }

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