foo.cc: In function 'int toInt(std::string)':
foo.cc:24:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | while (i < t.size())
| ~~^~~~~~~~~~
foo.cc: In function 'void getne(std::string, int*)':
foo.cc:63:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | while (i < p.size())
| ~~^~~~~~~~~~
foo.cc: In function 'll kmp(std::string, std::string, int*)':
foo.cc:81:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | while (i < len && post < p.size() && s[i] == p[post]) i++, post++;
| ~~~~~^~~~~~~~~~
foo.cc:83:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | if (post == p.size()) sum++;
| ~~~~~^~~~~~~~~~~
foo.cc: In function 'void deal()':
foo.cc:121:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
121 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
foo.cc:126:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
126 | scanf("%lld", *(w + i) + j);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务