/in/foo.cc: In function 'int count0(std::__cxx11::string)':
/in/foo.cc:20:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<num.size();i++)
~^~~~~~~~~~~
/in/foo.cc: In function 'int count1(std::__cxx11::string)':
/in/foo.cc:28:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<num.size();i++)
~^~~~~~~~~~~
/in/foo.cc: In function 'int count0(std::__cxx11::string)':
/in/foo.cc:23:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ret;
^~~
/in/foo.cc: In function 'int count1(std::__cxx11::string)':
/in/foo.cc:31:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ret;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:39:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(count0(num)<count1(num))
^~
/in/foo.cc:39:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]