namespace a { void f(){} } namespace b { using namespace a; } int main() { f(); }
Standard input is empty
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’
Standard output is empty