/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int Tree::lca(int, int)':
/in/foo.cc:23: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:23: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:24: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:24: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:29: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:29: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:41: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:41: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:69: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:69: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:79: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:79: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:89: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:89: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 Accepted 134ms 10.285 MiB
#2 Accepted 133ms 10.609 MiB
#3 Accepted 133ms 10.77 MiB
#4 Accepted 132ms 10.754 MiB
#5 Accepted 133ms 10.883 MiB
#6 Accepted 251ms 23.172 MiB
#7 Accepted 249ms 23.344 MiB
#8 Accepted 248ms 23.656 MiB
#9 Accepted 243ms 24.145 MiB
#10 Accepted 243ms 24.742 MiB
#11 Accepted 245ms 25.234 MiB
#12 Accepted 240ms 25.844 MiB
#13 Accepted 246ms 26.543 MiB
#14 Accepted 246ms 27.031 MiB
#15 Accepted 295ms 24.496 MiB
#16 Accepted 302ms 24.969 MiB
#17 Accepted 305ms 25.938 MiB
#18 Accepted 308ms 26.266 MiB
#19 Accepted 274ms 26.664 MiB
#20 Accepted 279ms 27.328 MiB

信息

递交者
类型
递交
题目
P2022 天才黑客
语言
C++
递交时间
2021-07-19 16:14:28
评测时间
2021-07-19 16:15:45
评测机
分数
100
总耗时
4650ms
峰值内存
27.328 MiB