/in/foo.cc: In function 'int main()':
/in/foo.cc:11:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < s.length(); i++) {
~~^~~~~~~~~~~~
/in/foo.cc:13:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = i + 1; j < s.length(); j++) {
~~^~~~~~~~~~~~
/in/foo.cc:19:8: error: 'k' was not declared in this scope
for (k = i - 1; k>=0 ; k--) {
^
/in/foo.cc:25:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((j == s.length()&& k==-1) && !success)
~~^~~~~~~~~~~~~
/in/foo.cc:25:26: error: 'k' was not declared in this scope
if ((j == s.length()&& k==-1) && !success)
^