fork download
  1.  
  2. struct ItemLocal
  3. {
  4. char *field1;
  5. char *field2;
  6. ..
  7. ItemLocal * next;
  8. ItemLocal* prev;
  9. };
  10.  
  11. struct Element
  12. {
  13. char * name;
  14. ItemLocal * Head;
  15. ItemLocal * Tail;
  16.  
  17. Element * next;
  18. Element * prev;
  19.  
  20. };
  21.  
  22.  
  23. struct CityList
  24. {
  25. Element * Head;
  26. Element * Tail;
  27. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:6:1: error: expected specifier-qualifier-list before ‘.’ token
 ..
 ^
prog.c:14:1: error: unknown type name ‘ItemLocal’
 ItemLocal * Head;
 ^~~~~~~~~
prog.c:15:1: error: unknown type name ‘ItemLocal’
 ItemLocal * Tail;
 ^~~~~~~~~
prog.c:17:1: error: unknown type name ‘Element’
 Element * next;
 ^~~~~~~
prog.c:18:1: error: unknown type name ‘Element’
 Element * prev;
 ^~~~~~~
prog.c:25:2: error: unknown type name ‘Element’
  Element * Head;
  ^~~~~~~
prog.c:26:2: error: unknown type name ‘Element’
  Element * Tail;
  ^~~~~~~
stdout
Standard output is empty