/in/foo.cc: In function 'int main()':
/in/foo.cc:17:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<str.length();i++)
~^~~~~~~~~~~~~
/in/foo.cc:22:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0,k=i;j<s.length();j++,k++)
~^~~~~~~~~~~
/in/foo.cc:25:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j==s.length() && (k==str.length()||str[k]==' '))
~^~~~~~~~~~~~
/in/foo.cc:25:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j==s.length() && (k==str.length()||str[k]==' '))
~^~~~~~~~~~~~~~
/in/foo.cc:34:25: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<ans<<" "<<flag<<endl;
^~~~