/in/foo.cc: In function 'bool containJudge(std::string, std::string, int)':
/in/foo.cc:12:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i = index; i < a.length() && i < index + b.length(); i++) {
| ~~^~~~~~~~~~~~
/in/foo.cc:12:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i = index; i < a.length() && i < index + b.length(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:24:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (int i = 0; i <= a.length()-b.length();) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:23:22: warning: unused variable 'j' [-Wunused-variable]
23 | int cnt = 0, j = 0;
| ^