prog.c:3:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main() {
^
prog.c: In function ‘main’:
prog.c:6:1: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(str,5,5,5,5,5);
^
prog.c:6:1: error: too many arguments to function ‘gets’
In file included from prog.c:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^