online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; int qualcosa (int a, int b, int minore) { if (a > b) { minore = b; } else if (a < b) { minore = a; } } int main () { int a, b, minore = 0; cout << "n1 = "; cin >> a; cout << "n2 = "; cin >> b; cout << "minore prima della funzione = " << minore << endl; minore = qualcosa (a, b, minore); cout << "minore dopo la funzione = " << minore; 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