online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <vector> struct _ { _(int value) : value(value) {} operator int() {return value;} _ operator* (int rhs) { std::cout << value << " * " << rhs << " = " << value * rhs << std::endl; return value * rhs;} _ operator/ (int rhs) { std::cout << value << " / " << rhs << " = " << value / rhs << std::endl; return value / rhs;} _ operator+ (int rhs) { std::cout << value << " + " << rhs << " = " << value + rhs << std::endl; return value + rhs;} _ operator- (int rhs) { std::cout << value << " - " << rhs << " = " << value - rhs << std::endl; return value - rhs;} int value; }; int main() { std::cout << static_cast<int>( _(2) * _(2) - _(1) / _(2) * _(4) - _(3) + _(3) - _(2) * _(4) - _(3) / _(2) * _(3) ) << std::endl; 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