fork(1) download
  1. #include <iostream>
  2. #define my_error 20
  3.  
  4. int main() {
  5. try {
  6. throw my_error;
  7. } catch (const decltype(my_error)& e) {
  8. std::cerr << "Error: " << e << '\n';
  9. }
  10. }
Success #stdin #stdout 0s 2956KB
stdin
Standard input is empty
stdout
Standard output is empty