fork download
  1. #include <stdexcept>
  2.  
  3. int main() {
  4. throw std::bad_cast();
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:4:10: error: 'bad_cast' is not a member of 'std'
stdout

Standard output is empty