fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. namespace Universe {
  6. int Galaxy = 1;
  7. }
  8.  
  9. namespace Universe {
  10. int Planet = Galaxy + 2 ;
  11. }
  12.  
  13. int main()
  14. {
  15. Universe::Galaxy *= 2;
  16. {
  17. using namespace Universe;
  18. Planet++;
  19. }
  20. cout << Universe::Galaxy << Universe::Planet;
  21. }
  22.  
  23.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
24