fork download
  1. #include <iostream>
  2. #include <memory>
  3.  
  4. class A {
  5. public:
  6. ~A() { std::cout << "destructing" << std::endl; }
  7. };
  8.  
  9. int main() {
  10. auto a = new A();
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty