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