/in/foo.cc: In function 'int kmp()':
/in/foo.cc:34:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0, j=0; i<T.length(); ++i) {
~^~~~~~~~~~~
/in/foo.cc:39:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j == P.length()) {
~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:30: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(nextt, 0, sizeof(next));
^
/in/foo.cc: In function 'int kmp()':
/in/foo.cc:43:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^