9
What will be the output of the program?
#include <iostream>
using namespace std;
#include <stdexcept>
int main() {
try {
throw runtime_error("failed");
} catch (const exception &e) {
cout << e.what() << endl;
}
return 0;
}Easy