In file included from /in/hotel-main.c:8:0:
/in/hotel-mt.h: In function 'del':
/in/hotel-mt.h:6:20: error: storage class specified for parameter 'tempv'
int breakfast;}tempv;
^~~~~
/in/hotel-mt.h:13:2: error: storage class specified for parameter 'tempr'
}tempr;
^~~~~
/in/hotel-mt.h:14:77: error: storage class specified for parameter 'node_t'
typedef struct node{ char name[100]; char content[100]; struct node *next;}node_t;
^~~~~~
/in/hotel-mt.h:16:20: error: expected declaration specifiers or '...' before 'tempv'
void card_generate(tempv* inf_vis, tempr*inf_rm);
^~~~~
/in/hotel-mt.h:16:36: error: expected declaration specifiers or '...' before 'tempr'
void card_generate(tempv* inf_vis, tempr*inf_rm);
^~~~~
/in/hotel-mt.h:17:23: error: expected declaration specifiers or '...' before 'node_t'
void print_vacantroom(node_t *head, char type[100]);
^~~~~~
/in/hotel-mt.h:18:16: error: expected declaration specifiers or '...' before 'node_t'
void PrintList(node_t *head);
^~~~~~
/in/hotel-mt.h:19:15: error: expected declaration specifiers or '...' before 'node_t'
void check_in(node_t *head);
^~~~~~
/in/hotel-mt.h:20:22: error: expected declaration specifiers or '...' before 'node_t'
void receiptgenerate(node_t *head,char *target);
^~~~~~
/in/hotel-mt.h:21:16: error: expected declaration specifiers or '...' before 'node_t'
void check_out(node_t *head);
^~~~~~
/in/hotel-mt.h:22:19: error: expected declaration specifiers or '...' before 'node_t'
void change_night(node_t *head);
^~~~~~
/in/hotel-mt.h:23:23: error: expected declaration specifiers or '...' before 'node_t'
void change_breakfast(node_t *head);
^~~~~~
/in/hotel-main.c:9:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void main(){
^
In file included from /in/hotel-main.c:6:0:
/in/hotel-ll.h:11:6: error: old-style parameter declarations in prototyped function definition
void del(node_t *head,char target[])// Delete target element in the list
^~~
/in/hotel-main.c:27:1: error: expected '{' at end of input
}
^
/in/hotel-mt.c: In function 'del':
/in/hotel-mt.c:11:2: error: storage class specified for parameter 'tempv'
}tempv;
^~~~~
/in/hotel-mt.c:18:2: error: storage class specified for parameter 'tempr'
}tempr;
^~~~~
/in/hotel-mt.c:19:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void print_vacantroom(node_t *head, char type[10]){
^
/in/hotel-mt.c:34:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void print_vacantdorm(node_t *head){
^
/in/hotel-mt.c:49:20: error: expected declaration specifiers or '...' before 'tempv'
void card_generate(tempv* inf_vis, tempr*inf_rm){
^~~~~
/in/hotel-mt.c:49:36: error: expected declaration specifiers or '...' before 'tempr'
void card_generate(tempv* inf_vis, tempr*inf_rm){
^~~~~
/in/hotel-mt.c:57:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void PrintList(node_t *head){
^
/in/hotel-mt.c:66:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void check_in(node_t *head){
^
/in/hotel-mt.c:143:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void receiptgenerate(node_t *head,char *target) {
^
/in/hotel-mt.c:190:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void check_out(node_t *head){
^
/in/hotel-mt.c:198:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void change_night(node_t *head){
^
/in/hotel-mt.c:218:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void change_breakfast(node_t *head){
^
/in/hotel-mt.c:238:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
char * firstnamegenerate(){
^
/in/hotel-mt.c:267:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
char * lastnamegenerate(){
^
/in/hotel-mt.c:336:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
char * IDgenerate(){
^
In file included from /in/hotel-mt.c:6:0:
/in/hotel-ll.h:11:6: error: old-style parameter declarations in prototyped function definition
void del(node_t *head,char target[])// Delete target element in the list
^~~
/in/hotel-mt.c:352:9: error: expected '{' at end of input
return ID; }
^~~~~~
/in/hotel-db.c: In function 'del':
/in/hotel-db.c:8:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
node_t *Initialize(){//initialize the hotel from the database
^
/in/hotel-db.c:72:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void PrintList(node_t *head){//print to the terminal
^
In file included from /in/hotel-db.c:6:0:
/in/hotel-ll.h:11:6: error: old-style parameter declarations in prototyped function definition
void del(node_t *head,char target[])// Delete target element in the list
^~~
/in/hotel-db.c:77:1: error: expected '{' at end of input
}
^
/in/hotel-ll.c: In function 'Initialize':
/in/hotel-ll.c:28:36: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
strcpy(p1->content,(char*)num);
^
/in/hotel-ll.c: In function 'SearchList':
/in/hotel-ll.c:152:20: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Werror=incompatible-pointer-types]
if (strcmp(target,pHead->name)==0) { n++; }
^~~~~~
In file included from /in/hotel-ll.c:4:0:
/usr/include/string.h:140:12: note: expected 'const char *' but argument is of type 'char **'
extern int strcmp (const char *__s1, const char *__s2)
^~~~~~
cc1: all warnings being treated as errors