记录详情

Runtime Error

/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 Runtime Error 12ms 25.215 MiB
#2 Runtime Error 11ms 23.977 MiB
#3 Runtime Error 11ms 23.633 MiB
#4 Runtime Error 11ms 23.773 MiB
#5 Runtime Error 11ms 23.672 MiB
#6 Runtime Error 50ms 44.977 MiB
#7 Runtime Error 49ms 44.359 MiB
#8 Runtime Error 51ms 45.93 MiB
#9 Accepted 172ms 39.98 MiB
#10 Accepted 174ms 41.242 MiB
#11 Accepted 177ms 40.711 MiB
#12 Accepted 177ms 39.973 MiB
#13 Runtime Error 52ms 40.02 MiB
#14 Runtime Error 54ms 41.648 MiB
#15 Runtime Error 53ms 41.074 MiB
#16 Runtime Error 51ms 41.805 MiB
#17 Runtime Error 47ms 38.508 MiB
#18 Runtime Error 48ms 38.379 MiB
#19 Runtime Error 48ms 38.621 MiB
#20 Runtime Error 136ms 63.441 MiB

信息

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