Compiler output
prog.cpp: In function 'int main()':
prog.cpp:12:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(ch);
^
prog.cpp:12:12: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(ch);
^
prog.cpp:20:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(ch);
^
prog.cpp:20:16: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(ch);
^
prog.cpp:23:36: warning: NULL used in arithmetic [-Wpointer-arith]
while(ch[i]!=' ' && ch[i]!=NULL)
^
prog.cpp:25:23: warning: array subscript has type 'char' [-Wchar-subscripts]
c1[++c1[0]]=ch[i];
^
prog.cpp:53:36: warning: NULL used in arithmetic [-Wpointer-arith]
while(ch[i]!=' ' && ch[i]!=NULL)
^
prog.cpp:55:23: warning: array subscript has type 'char' [-Wchar-subscripts]
c2[++c2[0]]=ch[i];
^
prog.cpp:91:36: warning: NULL used in arithmetic [-Wpointer-arith]
while(ch[i]!=' ' && ch[i]!=NULL)
^
prog.cpp:93:23: warning: array subscript has type 'char' [-Wchar-subscripts]
c3[++c3[0]]=ch[i];
^
/tmp/ccmFjAXP.o: In function `main':
prog.cpp:(.text.startup+0x24): warning: the `gets' function is dangerous and should not be used.