fork download
  1. #include <typeinfo>
  2. #include <iostream>
  3.  
  4. struct S {};
  5.  
  6. int main()
  7. {
  8. S s1();
  9. S s2;
  10. std::cout << typeid(s1).name() << std::endl;
  11. std::cout << typeid(s2).name() << std::endl;
  12. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
F1SvE
1S