1 2 3 4 5 6 7 8 9 10 11 12 | #include <stdexcept> #include <iostream> struct tricky_exception : public std::exception { tricky_exception() { throw std::runtime_error( "hah!" ); } }; int main() { try { throw tricky_exception(); } catch ( std::runtime_error &exc ) { std::cout << exc.what(); } } |
I2luY2x1ZGUgPHN0ZGV4Y2VwdD4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IHRyaWNreV9leGNlcHRpb24gOiBwdWJsaWMgc3RkOjpleGNlcHRpb24gewp0cmlja3lfZXhjZXB0aW9uKCkgeyB0aHJvdyBzdGQ6OnJ1bnRpbWVfZXJyb3IoICJoYWghIiApOyB9Cn07CgppbnQgbWFpbigpIHsKdHJ5IHsgdGhyb3cgdHJpY2t5X2V4Y2VwdGlvbigpOyB9CmNhdGNoICggc3RkOjpydW50aW1lX2Vycm9yICZleGMgKQp7IHN0ZDo6Y291dCA8PCBleGMud2hhdCgpOyB9Cn0=
-
upload with new input
-
result: Success time: 0s memory: 2856 kB returned value: 0
hah!


