fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class base {
  5. public:
  6. base (const int);
  7. };
  8.  
  9. class child: base {
  10. public:
  11. child (const int num): base(num) {}
  12. };
  13.  
  14. int main() {
  15. child a(5);
  16. // your code goes here
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 3136KB
stdin
Standard input is empty
compilation info
/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
stdout
Standard output is empty