/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int Tree::lca(int, int)':
/in/foo.cc:71:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int d=dep[u]-dep[v],i=0;d;d>>=1,i++)if(d&1)u=fa[u][i];if(u==v)return u;
         ^~~
/in/foo.cc:71:67: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int d=dep[u]-dep[v],i=0;d;d>>=1,i++)if(d&1)u=fa[u][i];if(u==v)return u;
                                                                   ^~
/in/foo.cc:72:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=17;i>=0;i--)if(fa[u][i]!=fa[v][i])u=fa[u][i],v=fa[v][i];return fa[u][0];
         ^~~
/in/foo.cc:72:75: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=17;i>=0;i--)if(fa[u][i]!=fa[v][i])u=fa[u][i],v=fa[v][i];return fa[u][0];
                                                                           ^~~~~~
/in/foo.cc: In function 'void Tree::clear()':
/in/foo.cc:77:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=k;i++)for(int j=0;j<18;j++)fa[i][j]=0;df=0;
         ^~~
/in/foo.cc:77:62: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=k;i++)for(int j=0;j<18;j++)fa[i][j]=0;df=0;
                                                              ^~
/in/foo.cc: In function 'void Grph::ins(int, int, int, int)':
/in/foo.cc:89:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(u==1)add(s,ctt+1,0),add(s,ctt+3,0);for(int i=1;i<=4;i++)tp[ctt+i]=d;//??4?? 
         ^~
/in/foo.cc:89:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(u==1)add(s,ctt+1,0),add(s,ctt+3,0);for(int i=1;i<=4;i++)tp[ctt+i]=d;//??4?? 
                                               ^~~
/in/foo.cc: In function 'void Grph::solve()':
/in/foo.cc:117:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ctt;i++)d[i]=(1LL<<40);d[s]=0;
         ^~~
/in/foo.cc:117:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ctt;i++)d[i]=(1LL<<40);d[s]=0;
                                               ^
/in/foo.cc:127:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
             for(int j=0;j<(int)eib[i].size();j++)ret=min(ret,d[eib[i][j]]);printf("%lld\n",ret);
             ^~~
/in/foo.cc:127:76: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             for(int j=0;j<(int)eib[i].size();j++)ret=min(ret,d[eib[i][j]]);printf("%lld\n",ret);
                                                                            ^~~~~~
/in/foo.cc: In function 'void Grph::clear()':
/in/foo.cc:137:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ctt+1;i++)book[i]=false;ct=0;ctt=0;
         ^~~
/in/foo.cc:137:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ctt+1;i++)book[i]=false;ct=0;ctt=0;
                                                ^~
# 状态 耗时 内存占用
#1 Wrong Answer 175ms 6.656 MiB
#2 Time Exceeded ≥1001ms ≥19.645 MiB
#3 Time Exceeded ≥1003ms ≥19.637 MiB
#4 Time Exceeded ≥1000ms ≥19.73 MiB
#5 Time Exceeded ≥1003ms ≥22.875 MiB
#6 Runtime Error 12ms 7.094 MiB
#7 Runtime Error 16ms 7.094 MiB
#8 Runtime Error 6ms 5.504 MiB
#9 Runtime Error 6ms 5.441 MiB
#10 Runtime Error 6ms 5.496 MiB

信息

递交者
类型
递交
题目
P1954 越狱老虎桥
语言
C++
递交时间
2021-07-19 16:36:53
评测时间
2021-07-19 16:37:49
评测机
分数
0
总耗时
4233ms
峰值内存
22.875 MiB