fork download
  1. #include <iostream>
  2. void quux() { std::cout << "root\n"; }
  3.  
  4. namespace other {
  5. void quux(int x = 0) { std::cout << "other\n"; }
  6. }
  7. namespace taxes {
  8. void foo() {
  9. using namespace other;
  10. quux(3);
  11. };
  12.  
  13. void bar() {
  14. quux();
  15. }
  16. }
  17.  
  18. int main() {
  19. taxes::foo();
  20. taxes::bar();
  21. return 0;
  22. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
other
root