/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool checkBAC()':
/in/foo.cc:61:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(ps&&a[ps+1]!=b[i])ps=nxts[ps];ps+=(a[ps+1]==b[i]);
   ^~~~~
/in/foo.cc:61:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   while(ps&&a[ps+1]!=b[i])ps=nxts[ps];ps+=(a[ps+1]==b[i]);
                                       ^~
/in/foo.cc:62:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(pt&&b[pt+1]!=a[i])pt=nxtt[pt];pt+=(b[pt+1]==a[i]);
   ^~~~~
/in/foo.cc:62:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   while(pt&&b[pt+1]!=a[i])pt=nxtt[pt];pt+=(b[pt+1]==a[i]);
                                       ^~
/in/foo.cc: In function 'bool checkACB()':
/in/foo.cc:74:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(ps!=n+1&&a[ps-1]!=b[i])ps=n+1-nxts[n-ps+1];ps-=(a[ps-1]==b[i]);
   ^~~~~
/in/foo.cc:74:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   while(ps!=n+1&&a[ps-1]!=b[i])ps=n+1-nxts[n-ps+1];ps-=(a[ps-1]==b[i]);
                                                    ^~
/in/foo.cc:75:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(pt!=n+1&&b[pt-1]!=a[i])pt=n+1-nxtt[n-pt+1];pt-=(b[pt-1]==a[i]);
   ^~~~~
/in/foo.cc:75:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   while(pt!=n+1&&b[pt-1]!=a[i])pt=n+1-nxtt[n-pt+1];pt-=(b[pt-1]==a[i]);
                                                    ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:147:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(re int i=1;i<=n;++i)a[i]=read();for(re int i=1;i<=n;++i)b[i]=read();
   ^~~
/in/foo.cc:147:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(re int i=1;i<=n;++i)a[i]=read();for(re int i=1;i<=n;++i)b[i]=read();
                                       ^~~
/in/foo.cc:146:19: warning: unused variable 'm' [-Wunused-variable]
   n=read();re int m=read();
                   ^
/in/foo.cc: In function 'bool checkCBA()':
/in/foo.cc:97:29: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(mx>i)p[i]=min(mx-i,p[id*2-i]);
                           ~~^~
/in/foo.cc:95:11: note: 'id' was declared here
  int mx=0,id;
           ^~
# 状态 耗时 内存占用
#1 Accepted 44ms 30.289 MiB
#2 Accepted 58ms 30.289 MiB
#3 Accepted 20ms 30.293 MiB
#4 Accepted 19ms 30.293 MiB
#5 Accepted 20ms 30.289 MiB
#6 Accepted 48ms 30.301 MiB
#7 Accepted 48ms 32.297 MiB
#8 Accepted 61ms 34.312 MiB
#9 Accepted 204ms 64.641 MiB
#10 Accepted 166ms 48.266 MiB

信息

递交者
类型
递交
题目
P2040 文本校正
语言
C++
递交时间
2020-05-10 12:08:41
评测时间
2020-05-10 12:08:41
评测机
分数
100
总耗时
692ms
峰值内存
64.641 MiB