online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; int function(int x, int y) { int quadrent; if(x > 0 && y > 0) { quadrent = 1; } else if(x < 0 && y > 0) { quadrent = 2; } else if(x < 0 && y < 0) { quadrent = 3; } else if(x > 0 && y < 0) { quadrent = 4; } return quadrent; } int main() { int x=1, y=1; cout << function(x, y); 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