In file included from /in/ex5.c:1:
/in/universal_set.h:20:7: error: no newline at end of file [-Werror,-Wnewline-eof]
#endif
^
/in/ex5.c:132:9: error: expected expression
char *temp = malloc((size_t)((set->card+1) * set->type));
^
/in/ex5.c:133:16: error: use of undeclared identifier 'temp'
memcpy(temp, set->elem, (size_t)((set->card+1) * set->type));
^
/in/ex5.c:137:9: error: use of undeclared identifier 'temp'
temp[set->card-1] = element;
^
/in/ex5.c:138:27: error: use of undeclared identifier 'temp'
memcpy(set->elem, temp, (size_t)(set->card * set->type));
^
/in/ex5.c:139:14: error: use of undeclared identifier 'temp'
free(temp);
^
/in/ex5.c:142:9: error: expected expression
int *temp = malloc((size_t)((set->card+1) * set->type));
^
/in/ex5.c:143:16: error: use of undeclared identifier 'temp'
memcpy(temp, set->elem, (size_t)((set->card+1) * set->type));
^
/in/ex5.c:144:13: error: redefinition of 'element' with a different type: 'int' vs 'char'
int element = *(int *)elem;
^
/in/ex5.c:134:14: note: previous definition is here
char element = *(char *)elem;
^
/in/ex5.c:146:9: error: use of undeclared identifier 'temp'
temp[set->card-1] = element;
^
/in/ex5.c:147:27: error: use of undeclared identifier 'temp'
memcpy(set->elem, temp, (size_t)(set->card*set->type));
^
/in/ex5.c:148:14: error: use of undeclared identifier 'temp'
free(temp);
^
/in/ex5.c:151:9: error: expected expression
double *temp = malloc((size_t)((set->card+1)*set->type));
^
/in/ex5.c:152:16: error: use of undeclared identifier 'temp'
memcpy(temp, set->elem, (size_t)((set->card+1)*set->type));
^
/in/ex5.c:153:16: error: redefinition of 'element' with a different type: 'double' vs 'char'
double element = *(double *)elem;
^
/in/ex5.c:134:14: note: previous definition is here
char element = *(char *)elem;
^
/in/ex5.c:155:9: error: use of undeclared identifier 'temp'
temp[set->card-1] = element;
^
/in/ex5.c:156:27: error: use of undeclared identifier 'temp'
memcpy(set->elem, temp, (size_t)(set->card*set->type));
^
/in/ex5.c:157:14: error: use of undeclared identifier 'temp'
free(temp);
^
/in/ex5.c:166:9: error: expected expression
char *temp = malloc((size_t)((set->card+)*set->type));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.