#include <stdio.h> struct List { List* next; int a; }; int main(void) { List n; return n.a; }
Standard input is empty
prog.c:4:5: error: unknown type name ‘List’ List* next; ^ prog.c: In function ‘main’: prog.c:9:2: error: unknown type name ‘List’ List n; ^ prog.c:10:13: error: request for member ‘a’ in something not a structure or union return n.a; ^ prog.c:9:7: warning: variable ‘n’ set but not used [-Wunused-but-set-variable] List n; ^ prog.c:11:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Standard output is empty