fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3. #include <string>
  4. #include <cxxabi.h>
  5. using namespace std;
  6. class hello{} a;
  7. class world{} b;
  8. int main()
  9. {
  10. int st;
  11. cout<< __cxxabiv1::__cxa_demangle(typeid(::a).name(), nullptr, st^st, &st);
  12. cout<< string(sizeof(int)/sizeof(int),sizeof(short)<<sizeof(int));
  13. cout<< __cxxabiv1::__cxa_demangle(typeid(::b).name(), nullptr, st^st, &st) <<endl;
  14. return st^st;
  15. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
hello world