fork download
  1. struct A{
  2. struct B{
  3. struct D{struct E{};};
  4. struct C:D{
  5. E get();
  6. };
  7. };
  8. };
  9. E A::B::C::get(){return E();};
  10. int main(){A::B::C c;c.get();return 0;}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9:1: error: 'E' does not name a type
 E A::B::C::get(){return E();};
 ^
stdout
Standard output is empty