fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. class Stress{
  6. public:
  7. virtual void method();
  8. };
  9.  
  10. class Child:public Stress{
  11. public:
  12. void method(){
  13. cout <<"Hello"<<endl;
  14. }
  15. };
  16.  
  17. int main() {
  18. // your code goes here
  19. Child a;
  20. a.method();
  21. return 0;
  22. }
  23.  
Compilation error #stdin compilation error #stdout 0s 3296KB
stdin
Standard input is empty
compilation info
/home/X1koqp/cc0eie7n.o:(.rodata._ZTI5Child[_ZTI5Child]+0x8): undefined reference to `typeinfo for Stress'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty