Compiler output
prog.cpp: In function 'int main()':
prog.cpp:13:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s1);
^
prog.cpp:13:16: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s1);
^
prog.cpp:23:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s1);
^
prog.cpp:23:16: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s1);
^
/tmp/ccT3FTdL.o: In function `main':
prog.cpp:(.text.startup+0x36): warning: the `gets' function is dangerous and should not be used.