fork download
  1. #include <stdio.h>
  2.  
  3. //typedef struct TList TList;
  4.  
  5. // Структура элемента списка
  6. struct TList {
  7. // Некое значение элемента
  8. int x;
  9. // Указатель на следующий элемент
  10. TList* next;
  11. // Указатель на предидущий элемент
  12. TList *prev;
  13. // Переменка списка
  14. } *list, *last;
  15.  
  16. int main(void) {
  17. // your code goes here
  18. TList a;
  19. return 0;
  20. }
  21.  
Compilation error #stdin compilation error #stdout 0s 2244KB
stdin
Standard input is empty
compilation info
prog.c:10:2: error: unknown type name ‘TList’
  TList* next;
  ^
prog.c:12:2: error: unknown type name ‘TList’
  TList *prev;
  ^
prog.c: In function ‘main’:
prog.c:18:2: error: unknown type name ‘TList’
  TList a;
  ^
prog.c:18:8: warning: unused variable ‘a’ [-Wunused-variable]
  TList a;
        ^
stdout
Standard output is empty