/in/foo.cc: In function 'int main()':
/in/foo.cc:33:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < strlen(a); i++)
~~^~~~~~~~~~~
/in/foo.cc:38:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0,k=i; j < strlen(b) && k<strlen(a); j++,k++)
~~^~~~~~~~~~~
/in/foo.cc:38:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0,k=i; j < strlen(b) && k<strlen(a); j++,k++)
~^~~~~~~~~~
/in/foo.cc:53:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d\n", ans+1);
~~~~~~^~~~~~~~~~~~~~~