/in/foo.cc: In function 'bool isPalindromic(std::__cxx11::string)':
/in/foo.cc:69:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < (unsigned int)(str.length() + 1 / 2); i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int nToTen(std::__cxx11::string, int)':
/in/foo.cc:102:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < (unsigned int)(overN.length()); i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int addOverturn(int)':
/in/foo.cc:87:13: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (num + res > 100)
~~~~^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:87:13: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (num + res > 100)
~~~~^~~~~
/in/foo.cc:80:9: note: 'res' was declared here
int res, tmp;
^~~
/in/foo.cc:87:13: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (num + res > 100)
~~~~^~~~~
/in/foo.cc:80:9: note: 'res' was declared here
int res, tmp;
^~~