/in/foo.cc: In function 'bool search(std::__cxx11::string, std::__cxx11::string, int)':
/in/foo.cc:101:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (j<s.length() && i<s1.length())
~^~~~~~~~~~~
/in/foo.cc:101:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (j<s.length() && i<s1.length())
~^~~~~~~~~~~~
/in/foo.cc:107:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i<s1.length()) return false;
~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:140:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<s1.length(); ++j)
~^~~~~~~~~~~~