/ Vijos /

记录详情

Compile Error

/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]
 }
 ^

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2018-11-04 16:25:29
评测时间
2018-11-04 16:25:29
评测机
分数
0
总耗时
355ms
峰值内存
39.941 MiB