fork download
  1. #include <cassert>
  2.  
  3.  
  4. class A
  5. {
  6. public:
  7.  
  8. A()
  9. {
  10. throw 10;
  11. }
  12.  
  13. ~A()
  14. {
  15. assert(false);
  16. }
  17. };
  18.  
  19.  
  20. int main()
  21. {
  22.  
  23. A a;
  24.  
  25. return 0;
  26. }
Runtime error #stdin #stdout #stderr 0s 16064KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'int'