记录详情

Accepted

/in/foo.cc: In function 'void dfs1(int)':
/in/foo.cc:7:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1;(1<<i)<=d[x];++i)fa[x][i]=fa[fa[x][i-1]][i-1];mx[x]=d[x];
     ^~~
/in/foo.cc:7:63: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int i=1;(1<<i)<=d[x];++i)fa[x][i]=fa[fa[x][i-1]][i-1];mx[x]=d[x];
                                                               ^~
/in/foo.cc: In function 'int A(int, int)':
/in/foo.cc:19:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(k>d[x])return 0;if(!k)return x;
     ^~
/in/foo.cc:19:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(k>d[x])return 0;if(!k)return x;
                        ^~
/in/foo.cc:21:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(!k)return x;int len=d[x]-d[bl[x]];
     ^~
/in/foo.cc:21:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(!k)return x;int len=d[x]-d[bl[x]];
                    ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(scanf("%d",&n),i=1;i<n;++i)scanf("%d%d",&x,&y),insert(x,y);mx[0]=-1;
     ^~~
/in/foo.cc:28:68: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(scanf("%d",&n),i=1;i<n;++i)scanf("%d%d",&x,&y),insert(x,y);mx[0]=-1;
                                                                    ^~
/in/foo.cc: In function 'int A(int, int)':
/in/foo.cc:25:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 14ms 25.496 MiB
#2 Accepted 14ms 25.324 MiB
#3 Accepted 14ms 24.27 MiB
#4 Accepted 14ms 25.293 MiB
#5 Accepted 14ms 25.41 MiB
#6 Accepted 255ms 42.648 MiB
#7 Accepted 256ms 42.141 MiB
#8 Accepted 262ms 43.094 MiB
#9 Accepted 174ms 38.406 MiB
#10 Accepted 175ms 38.688 MiB
#11 Accepted 174ms 38.188 MiB
#12 Accepted 167ms 38.82 MiB
#13 Accepted 294ms 38.562 MiB
#14 Accepted 299ms 38.062 MiB
#15 Accepted 275ms 39.438 MiB
#16 Accepted 277ms 38.691 MiB
#17 Accepted 272ms 36.188 MiB
#18 Accepted 273ms 36.305 MiB
#19 Accepted 267ms 36.066 MiB
#20 Accepted 824ms 58.316 MiB

信息

递交者
类型
递交
题目
lxhgww的奇思妙想
语言
C++
递交时间
2019-10-30 09:46:38
评测时间
2019-10-30 09:46:38
评测机
分数
100
总耗时
4325ms
峰值内存
58.316 MiB