/in/foo.cc: In function 'void Print(char*)':
/in/foo.cc:7:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (long i = 0; i < strlen(str); i++) {
~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void Replace(const char*, const char*, const char*, char*)':
/in/foo.cc:14:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (long i = pos1; i < len1 - strlen(strstr(src + pos1, sch)); i++) des[pos2++] = src[i];
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (long i = 0; i < strlen(s); i++) {
~~^~~~~~~~~~~
/in/foo.cc:39:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (long i = m - 1; i < strlen(s); i++) tmp[(long)fabs(n - m) - 1 + (i - m + 1)] = s[i];
~~^~~~~~~~~~~