fork download
  1. #include <exception>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(void)
  7. {
  8. try{
  9. throw invalid_argument("invarg");
  10. }
  11. catch(exception const &e){
  12. cout << e.what();
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4356KB
stdin
Standard input is empty
stdout
invarg