foo.cc: In function 'int Index(char*, int, char*)':
foo.cc:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
13 | while (i <= strlen(S) && j <= strlen(T))
| ~~^~~~~~~~~~~~
foo.cc:13:36: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
13 | while (i <= strlen(S) && j <= strlen(T))
| ~~^~~~~~~~~~~~
foo.cc:26:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
26 | if (j > strlen(T))
| ~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:34:16: warning: 'a' is used uninitialized [-Wuninitialized]
34 | cin >> a;
| ^
foo.cc:36:16: warning: 'b' is used uninitialized [-Wuninitialized]
36 | cin >> b;
| ^
[Hydro](https://hydro.ac)提供评测服务