1 2 3 4 5 | #include <stdexcept> int main() { throw std::bad_cast(); } |
I2luY2x1ZGUgPHN0ZGV4Y2VwdD4KCmludCBtYWluKCkgewogICB0aHJvdyBzdGQ6OmJhZF9jYXN0KCk7Cn0=
prog.cpp: In function 'int main()': prog.cpp:4:10: error: 'bad_cast' is not a member of 'std'
-
result: Compilation error (maybe you wish to see an example for C++11)


