struct a{ int y; struct b { int x; };}; int main(){ a mystruct; mystruct.y = 5; mystruct.b.x= 2;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:13: error: invalid use of ‘struct a::b’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!