online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <string> #include <vector> class A { public: std::string s = "test"; }; class B { public: std::vector<A> vec; }; int main() { std::vector<B> vec; A a1 = A(); A a2 = A(); B b1 = B(); b1.vec.push_back(a1); b1.vec.push_back(a2); vec.push_back(b1); // push_1 vec.push_back(b1); }

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