online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#define N 1 #define Z int #define R "\r" #include <list> #include <iostream> using namespace std; int main() { list<Z> l; l.push_back(N); for (auto a : l) { l.push_back(a++); cout << R << a; } cout << endl; lab: cout << R << l.back(); goto lab; }

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