/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:21:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0,k=i;j<s0.length();j++,k++)
~^~~~~~~~~~~~
/in/foo.cc:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j == s0.length()&&(k==str.length()||str[k]==' '))
~~^~~~~~~~~~~~~~
/in/foo.cc:24:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j == s0.length()&&(k==str.length()||str[k]==' '))
~^~~~~~~~~~~~~~
/in/foo.cc:32:25: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<ans<<" "<<p<<endl;
^