Compiler output
prog.cpp: In function 'int main()':
prog.cpp:9:19: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
scanf("%d",&n); gets(st);
^
prog.cpp:9:26: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
scanf("%d",&n); gets(st);
^
prog.cpp:11:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(st); s=t="";
^
prog.cpp:11:12: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(st); s=t="";
^
prog.cpp:17:3: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(st); s="";
^
prog.cpp:17:10: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(st); s="";
^
/tmp/ccjVf8lA.o: In function `main':
prog.cpp:(.text.startup+0x22): warning: the `gets' function is dangerous and should not be used.