/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:68:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(re int i=1;i<=m;++i)c[i]=c[(i-1)%mm+1];p[0]=1;
   ^~~
/in/foo.cc:68:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(re int i=1;i<=m;++i)c[i]=c[(i-1)%mm+1];p[0]=1;
                                              ^
/in/foo.cc:69:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(re int i=1;i<=m;++i)pre[i]=(pre[i-1]*131ll+c[i]-'A'+1)%M,p[i]=p[i-1]*131ll%M;suf[m+1]=0;
   ^~~
/in/foo.cc:69:84: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(re int i=1;i<=m;++i)pre[i]=(pre[i-1]*131ll+c[i]-'A'+1)%M,p[i]=p[i-1]*131ll%M;suf[m+1]=0;
                                                                                    ^~~
# 状态 耗时 内存占用
#1 Runtime Error 5ms 12.168 MiB
#2 Runtime Error 6ms 14.168 MiB
#3 Runtime Error 6ms 14.293 MiB
#4 Runtime Error 13ms 12.289 MiB

信息

递交者
类型
递交
题目
P1995 模式字符串
语言
C++
递交时间
2020-05-10 12:14:00
评测时间
2020-05-10 12:14:00
评测机
分数
0
总耗时
33ms
峰值内存
14.293 MiB