fork download
  1. namespace X
  2. {
  3. struct A {};
  4. }
  5.  
  6. namespace Y
  7. {
  8. struct A {};
  9. }
  10.  
  11. using namespace X;
  12. using namespace Y;
  13.  
  14. int main()
  15. {
  16. // A a; is ambiguous, so it's illegal
  17. X::A x;
  18. Y::A y;
  19. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout

Standard output is empty