Compiler output
prog.cpp: In function 'int main()':
prog.cpp:32:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(sir + 1); int n = strlen(sir + 1);
^
prog.cpp:32:17: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(sir + 1); int n = strlen(sir + 1);
^
/tmp/ccjEW5X6.o: In function `main':
prog.cpp:(.text.startup+0xe): warning: the `gets' function is dangerous and should not be used.