fork download
  1. #include <stdio.h>
  2.  
  3. struct List {
  4. List* next;
  5. int a;
  6. };
  7.  
  8. int main(void) {
  9. List n;
  10. return n.a;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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]
 }
 ^
stdout
Standard output is empty