#include <iostream>using namespace std; class base {public: base (const int);}; class child: base {public: child (const int num): base(num) {}}; int main() { child a(5); // your code goes here return 0;}
Standard input is empty
/home/4o7bme/ccOBLoKG.o: In function `main': prog.cpp:(.text.startup+0x18): undefined reference to `base::base(int)' collect2: error: ld returned 1 exit status
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!