online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include<map> #include<string> #include<vector> class Base { public: virtual void foo(int i) { std::cout << "Base::foo(int i)" << std::endl; } virtual void foo() { std::cout << "Base::foo()" << std::endl; }; }; class Derived : public Base { public: using Base::foo; void foo() override { std::cout << "Derived::foo()" << std::endl; } }; int main(const int ac, const char* const av[]) { Base base; base.foo(); base.foo(42); Derived derived; derived.foo(); derived.foo(42);//ERROR : Function unknown }

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