prog.c: In function ‘add_name’:
prog.c:25:24: warning: left-hand operand of comma expression has no effect [-Wunused-value]
newList->name_f,namef_;
^
prog.c:25:9: warning: statement with no effect [-Wunused-value]
newList->name_f,namef_;
^
prog.c:26:24: warning: left-hand operand of comma expression has no effect [-Wunused-value]
newList->name_p,namep_;
^
prog.c:26:9: warning: statement with no effect [-Wunused-value]
newList->name_p,namep_;
^
prog.c:27:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
newList->date,date_;
^
prog.c:27:9: warning: statement with no effect [-Wunused-value]
newList->date,date_;
^
prog.c:28:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
newList->genre,genre_;
^
prog.c:28:9: warning: statement with no effect [-Wunused-value]
newList->genre,genre_;
^
prog.c: In function ‘show_list’:
prog.c:96:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘char *’ [-Wformat=]
printf("%d", info->date);
^
prog.c: In function ‘show_list_1’:
prog.c:111:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘char *’ [-Wformat=]
printf("%d\n", info->date);
^
prog.c: In function ‘add_name’:
prog.c:119:5: warning: ‘main’ is normally a non-static function [-Wmain]
int main(void)
^
prog.c: In function ‘main’:
prog.c:122:5: warning: implicit declaration of function ‘SetConsoleCP’ [-Wimplicit-function-declaration]
SetConsoleCP(1251);
^
prog.c:123:2: warning: implicit declaration of function ‘SetConsoleOutputCP’ [-Wimplicit-function-declaration]
SetConsoleOutputCP(1251);
^
prog.c:142:29: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(name_f);
^
prog.c:142:29: warning: passing argument 1 of ‘gets’ makes pointer from integer without a cast [enabled by default]
In file included from prog.c:1:0:
/usr/include/stdio.h:638:14: note: expected ‘char *’ but argument is of type ‘char’
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
prog.c:144:29: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(name_p);
^
prog.c:144:29: warning: passing argument 1 of ‘gets’ makes pointer from integer without a cast [enabled by default]
In file included from prog.c:1:0:
/usr/include/stdio.h:638:14: note: expected ‘char *’ but argument is of type ‘char’
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
prog.c:146:8: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(date);
^
prog.c:146:8: warning: passing argument 1 of ‘gets’ makes pointer from integer without a cast [enabled by default]
In file included from prog.c:1:0:
/usr/include/stdio.h:638:14: note: expected ‘char *’ but argument is of type ‘int’
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
prog.c:148:8: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(genre);
^
prog.c:148:8: warning: passing argument 1 of ‘gets’ makes pointer from integer without a cast [enabled by default]
In file included from prog.c:1:0:
/usr/include/stdio.h:638:14: note: expected ‘char *’ but argument is of type ‘char’
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
prog.c:185:29: warning: implicit declaration of function ‘getch’ [-Wimplicit-function-declaration]
getch();
^
prog.c:186:29: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
return;
^
prog.c: In function ‘add_name’:
prog.c:197:1: error: expected declaration or statement at end of input
}
^