Compiler output
prog.cpp: In function 'int main()':
prog.cpp:15:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s);ls=strlen(s);
^
prog.cpp:15:15: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s);ls=strlen(s);
^
prog.cpp:21:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s); ls=strlen(s);
^
prog.cpp:21:15: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s); ls=strlen(s);
^
/tmp/ccbxeSlR.o: In function `main':
prog.cpp:(.text.startup+0x20): warning: the `gets' function is dangerous and should not be used.