/in/foo.cc: In function 'std::__cxx11::string cmp(std::__cxx11::string)':
/in/foo.cc:7:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<m.length()/2;)
~^~~~~~~~~~~~~
/in/foo.cc: In function 'int acmp(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:19:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<m.length();i++)
~^~~~~~~~~~~
/in/foo.cc:30:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<m.length()-1;i++)
~^~~~~~~~~~~~~
/in/foo.cc:17:9: warning: variable 'c' set but not used [-Wunused-but-set-variable]
int c=0;
^
/in/foo.cc: In function 'int bcmp(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:45:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<m.length();i++)
~^~~~~~~~~~~
/in/foo.cc:56:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<m.length()-1;i++)
~^~~~~~~~~~~~~
/in/foo.cc:43:9: warning: variable 'c' set but not used [-Wunused-but-set-variable]
int c=0;
^
/in/foo.cc: In function 'int acmp(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:40:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.cc: In function 'int bcmp(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:66:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^