namespace N1{ struct Foo{};} namespace N2{ using namespace N1; Foo f;} namespace N2{ Foo f2;} int main(){ N2::f2;}
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!