fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4.  
  5. struct Block {
  6. int number;
  7.  
  8. ~Block() {
  9. cout << "delete!" << endl;
  10. }
  11. };
  12.  
  13. int main() {
  14. Block block;
  15. block.number = 0;
  16.  
  17. if (block.number == 0) {
  18. exit(EXIT_FAILURE);
  19. }
  20.  
  21. cout << "This point won't be reached!" << endl;
  22.  
  23. return 0;
  24. }
Runtime error #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty