online compiler and debugger for c/c++

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

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