foo.cc: In function 'int main()':
foo.cc:65:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for (int i = 1; i < s1.size(); i++)
| ~~^~~~~~~~~~~
foo.cc:67:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
67 | if (s1.substr(i, s2.size()) == s2)
| ^~
foo.cc:69:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
69 | v[i] += v[i - 1];
| ^
foo.cc:75:27: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | if (r - l + 1 < s2.size())
| ~~~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务