/in/foo.cc: In function 'bool compare(int, int, std::__cxx11::string)':
/in/foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<tool.size()-(y-x);++i)
~^~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int ELFhash(std::__cxx11::string)':
/in/foo.cc:24:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.size())
~^~~~~~~~~
/in/foo.cc: In function 'bool search(int, std::__cxx11::string)':
/in/foo.cc:43:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();++i)
~^~~~~~~~~
/in/foo.cc:46:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=1;j<s.size();++j)
~^~~~~~~~~
/in/foo.cc:52:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<s.size())
~^~~~~~~~~
/in/foo.cc:54:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.size()&&(s[i]=='C'||s[i]=='O'||s[i]=='W')) i++;
~^~~~~~~~~
/in/foo.cc:56:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<s.size()&&s[j]!='C'&&s[j]!='O'&&s[j]!='W') j++;
~^~~~~~~~~
/in/foo.cc:65:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<s.size();++j)
~^~~~~~~~~