fork(1) download
  1. namespace a
  2. {
  3. void f(){}
  4. }
  5. namespace b
  6. {
  7. using namespace a;
  8. }
  9.  
  10. int main()
  11. {
  12. f();
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:12:4: error: ‘f’ was not declared in this scope
  f();
    ^
prog.cpp:12:4: note: suggested alternatives:
prog.cpp:3:7: note:   ‘a::f’
  void f(){}
       ^
prog.cpp:3:7: note:   ‘a::f’
stdout
Standard output is empty