#include <iostream> using namespace std; struct S { int x; struct S k; }; int main() { // your code goes here struct S s; s.x=10; return 0; }
Standard input is empty
prog.cpp:6:11: error: field ‘k’ has incomplete type ‘S’ struct S k; ^ prog.cpp:3:8: note: definition of ‘struct S’ is not complete until the closing brace struct S ^
Standard output is empty