foo.cc: In function 'bool Comapre(char*, char*, int)':
foo.cc:7:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
7 | for (int j = 0; j < strlen(t); j++)
| ~~^~~~~~~~~~~
foo.cc: In function 'void Delete(char*, int)':
foo.cc:15:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
15 | for (; j < strlen(s) - 1; j++)
| ~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:35:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i <= (strlen(s) - strlen(t1) + 1); )
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:39:43: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (int j = 0; j < strlen(t1); j++)
| ~~^~~~~~~~~~~~
foo.cc:48:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
48 | for (int i = 0; i < strlen(s); i++)
| ~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务