fork download
  1. #include <iostream>
  2.  
  3. struct Foobar
  4. {
  5. int bar;
  6. };
  7.  
  8. namespace foobaring
  9. {
  10.  
  11. struct Foobar
  12. {
  13. double bar;
  14. };
  15.  
  16. } // namespace
  17.  
  18. int main()
  19. {
  20. std::cout << "HELLO!" << std::endl;
  21. foobaring::Foobar foobar;
  22. std::cout << sizeof(foobar.bar);
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
HELLO!
8