Compiler output
prog.cpp: In function 'int main()':
prog.cpp:11:4: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets (s);
^
prog.cpp:11:11: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets (s);
^
prog.cpp:8:10: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
char ch = 'A';
^
prog.cpp:9:9: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
int ok = 0, i;
^
/tmp/ccyXSZh0.o: In function `main':
prog.cpp:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.