fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. try
  8. {
  9. try
  10. {
  11. try
  12. {
  13. try
  14. {
  15. try
  16. {
  17. throw std::runtime_error(" исключения");
  18. }
  19. catch(exception &e)
  20. {
  21. throw std::runtime_error(" в" + string(e.what()));
  22. }
  23. }
  24. catch(exception &e)
  25. {
  26. throw std::runtime_error(" может" + string(e.what()));
  27. }
  28. }
  29. catch(exception &e)
  30. {
  31. throw std::runtime_error(" не" + string(e.what()));
  32. }
  33. }
  34. catch(exception &e)
  35. {
  36. throw std::runtime_error("быдло" + string(e.what()));
  37. }
  38. }
  39. catch (exception &e)
  40. {
  41. std::cout << e.what();
  42. }
  43. return 0;
  44. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
быдло не может в исключения