Compiler output
prog.cpp: In function 'int main()':
prog.cpp:19:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s2[j]!=' ' && j<strlen(s2))
^
prog.cpp:33:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s2[j]!=' ' && j<strlen(s2))
^
prog.cpp:46:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s2[j]!=' ' && j<strlen(s2))
^
prog.cpp:55:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ok==1 || j!=strlen(s2))
^