fork(1) download
  1. #include <iostream>
  2.  
  3. class World{
  4. public:
  5. World(){};
  6. ~World(){std::cout << "end of the world";};
  7. };
  8.  
  9. int main(){
  10. auto _world = new World();
  11. delete _world;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5504KB
stdin
Standard input is empty
stdout
end of the world