prog.c: In function 'main':
prog.c:7:2: error: unknown type name 'list_t'
list_t* list = list_create();
^
prog.c:7:17: warning: implicit declaration of function 'list_create' [-Wimplicit-function-declaration]
list_t* list = list_create();
^
prog.c:7:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
prog.c:9:3: warning: implicit declaration of function 'list_append' [-Wimplicit-function-declaration]
list_append(list, i);
^
prog.c:11:3: warning: implicit declaration of function 'list_prepend' [-Wimplicit-function-declaration]
list_prepend(list, i);
^
prog.c:13:2: warning: implicit declaration of function 'list_print' [-Wimplicit-function-declaration]
list_print(list);
^
prog.c:15:2: error: unknown type name 'element_t'
element_t* el_1 = list_index(list, index);
^
prog.c:15:20: warning: implicit declaration of function 'list_index' [-Wimplicit-function-declaration]
element_t* el_1 = list_index(list, index);
^
prog.c:15:20: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
prog.c:20:49: error: request for member 'val' in something not a structure or union
printf("value at index %d is %d\n", index, el_1->val);
^
prog.c:23:9: error: request for member 'val' in something not a structure or union
if(el_1->val != -2)
^
prog.c:31:2: error: unknown type name 'element_t'
element_t* el_2 = element_create(9);
^
prog.c:31:20: warning: implicit declaration of function 'element_create' [-Wimplicit-function-declaration]
element_t* el_2 = element_create(9);
^
prog.c:31:20: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
prog.c:32:9: error: request for member 'val' in something not a structure or union
if(el_2->val != 9) {
^
prog.c:42:2: error: unknown type name 'element_t'
element_t* el_3 = element_create(99);
^
prog.c:42:20: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
element_t* el_3 = element_create(99);
^
prog.c:43:2: error: unknown type name 'list_t'
list_t* list_2 = list_create();
^
prog.c:43:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
list_t* list_2 = list_create();
^
prog.c:48:10: error: request for member 'tail' in something not a structure or union
if (list->tail->val != 4){
^
prog.c:53:6: error: request for member 'next' in something not a structure or union
el_3->next = list_index(list_2, 3);
^
prog.c:54:11: error: request for member 'next' in something not a structure or union
free(el_3->next);
^
prog.c:55:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
el_3 = element_create(100);
^
prog.c:56:9: error: request for member 'next' in something not a structure or union
if(el_3->next != NULL){
^
prog.c:67:2: error: unknown type name 'list_t'
list_t* list_3 = list_create();
^
prog.c:67:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
list_t* list_3 = list_create();
^
prog.c:68:2: error: unknown type name 'element_t'
element_t* el_4 = list_index(list_3, 5);
^
prog.c:68:20: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
element_t* el_4 = list_index(list_3, 5);
^
prog.c:80:2: error: unknown type name 'list_t'
list_t* list_4 = list_create();
^
prog.c:80:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
list_t* list_4 = list_create();
^
prog.c:82:11: error: request for member 'tail' in something not a structure or union
if(list_4->tail->val != 800) {
^
prog.c:93:2: error: unknown type name 'list_t'
list_t* list_5 = list_create();
^
prog.c:93:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
list_t* list_5 = list_create();
^
prog.c:94:8: error: request for member 'head' in something not a structure or union
list_5->head = element_create(666);
^
prog.c:95:8: error: request for member 'head' in something not a structure or union
list_5->head->next = element_create(333);
^
prog.c:96:8: error: request for member 'tail' in something not a structure or union
list_5->tail = list_5->head->next;
^
prog.c:96:23: error: request for member 'head' in something not a structure or union
list_5->tail = list_5->head->next;
^
prog.c:98:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
list_5 = list_create();
^
prog.c:100:11: error: request for member 'tail' in something not a structure or union
if(list_5->tail != NULL) {
^
prog.c:109:2: error: unknown type name 'list_t'
list_t* list_6 = list_create();
^
prog.c:109:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
list_t* list_6 = list_create();
^
prog.c:114:2: warning: implicit declaration of function 'list_destroy' [-Wimplicit-function-declaration]
list_destroy(list);
^