#include using namespace std; int function1() throw(std::bad_alloc) { throw new std::bad_alloc; return 10; } int main() { cout << function1() << endl; }