fork(2) download
  1. #include <iostream>
  2.  
  3. struct A{
  4. ~A() { std::cout << "destructor\n"; }
  5. };
  6.  
  7. int main() {
  8. A* a = new A[10];
  9. delete a;
  10. }
Runtime error #stdin #stdout 0.02s 2856KB
stdin
Standard input is empty
stdout
destructor