prog.c: In function ‘add_name’:
prog.c:29:9: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->name_f,namef_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:30:9: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->name_p,namep_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:31:9: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->date,date_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘int’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:31:9: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->date,date_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:32:9: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->genre,genre_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:33:9: warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(newList->next,NULL);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:33:9: warning: null argument where non-null required (argument 2) [-Wnonnull]
strcpy(newList->next,NULL);
^
prog.c:34:9: warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(newList->previous,current);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:34:9: warning: passing argument 2 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(newList->previous,current);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:35:9: warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(current->next,newList);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:35:9: warning: passing argument 2 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(current->next,newList);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:42:10: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->name_f,namef_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:43:10: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->name_p,namep_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:44:10: warning: passing argument 1 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->date,date_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘int’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:44:10: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->date,date_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:45:10: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast [enabled by default]
strcpy(newList->genre,genre_);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘char’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:46:10: warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(head,newList);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:46:10: warning: passing argument 2 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(head,newList);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘const char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:47:10: warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(newList->next,NULL);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:47:10: warning: null argument where non-null required (argument 2) [-Wnonnull]
strcpy(newList->next,NULL);
^
prog.c:48:10: warning: passing argument 1 of ‘strcpy’ from incompatible pointer type [enabled by default]
strcpy(newList->previous,NULL);
^
In file included from prog.c:4:0:
/usr/include/string.h:125:14: note: expected ‘char * __restrict__’ but argument is of type ‘struct city *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:48:10: warning: null argument where non-null required (argument 2) [-Wnonnull]
strcpy(newList->previous,NULL);
^
prog.c: In function ‘show_list’:
prog.c:95:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[80]’ [-Wformat=]
printf("%s", &info->name_f);
^
prog.c:96:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[80]’ [-Wformat=]
printf("%s", &info->name_p);
^
prog.c:97:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
printf("%d", &info->date);
^
prog.c:98:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[80]’ [-Wformat=]
printf("%s", &info->genre);
^
prog.c: In function ‘show_list_1’:
prog.c:110:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[80]’ [-Wformat=]
printf("%s", &info->name_f);
^
prog.c:111:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[80]’ [-Wformat=]
printf("%s", &info->name_p);
^
prog.c:112:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
printf("%d", &info->date);
^
prog.c:113:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[80]’ [-Wformat=]
printf("%s", &info->genre);
^
prog.c: In function ‘main’:
prog.c:123:5: warning: implicit declaration of function ‘SetConsoleCP’ [-Wimplicit-function-declaration]
SetConsoleCP(1251);
^
prog.c:124:2: warning: implicit declaration of function ‘SetConsoleOutputCP’ [-Wimplicit-function-declaration]
SetConsoleOutputCP(1251);
^
prog.c:147:8: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘char *’ [-Wformat=]
scanf("%d", &date);
^
prog.c:186:29: warning: implicit declaration of function ‘getch’ [-Wimplicit-function-declaration]
getch();
^
prog.c: In function ‘print’:
prog.c:8:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/0W0sbw/ccCBdPpy.o: In function `main':
prog.c:(.text.startup+0x34): undefined reference to `SetConsoleCP'
prog.c:(.text.startup+0x40): undefined reference to `SetConsoleOutputCP'
prog.c:(.text.startup+0x1fd): undefined reference to `getch'
prog.c:(.text.startup+0x22d): undefined reference to `getch'
collect2: error: ld returned 1 exit status