/in/hotel-mt.c: In function 'gainname':
/in/hotel-mt.c:123:16: error: passing argument 1 of 'strcpy' makes pointer from integer without a cast [-Werror=int-conversion]
strcpy(name[i++],a);
^~~~
In file included from /in/hotel-mt.c:5:0:
/usr/include/string.h:125:14: note: expected 'char * restrict' but argument is of type 'char'
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^~~~~~
/in/hotel-mt.c: At top level:
/in/hotel-mt.c:129:44: error: redefinition of parameter 'i'
void sortname(char name[50][50],int i, int i+2)//contain id
^
/in/hotel-mt.c:129:37: note: previous definition of 'i' was here
void sortname(char name[50][50],int i, int i+2)//contain id
^
/in/hotel-mt.c:129:45: error: expected ';', ',' or ')' before '+' token
void sortname(char name[50][50],int i, int i+2)//contain id
^
cc1: all warnings being treated as errors