记录详情

Wrong Answer

/in/foo.cc: In function 'bool dfs(int, int)':
/in/foo.cc:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=h[x],y;i;i=e[i].nx) if((y=e[i].to)!=fa&&dfs(y,x)) p=1;else e[i].to=-1;return vis[x]=p;
     ^~~
/in/foo.cc:30:85: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int i=h[x],y;i;i=e[i].nx) if((y=e[i].to)!=fa&&dfs(y,x)) p=1;else e[i].to=-1;return vis[x]=p;
                                                                                     ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:37:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1;i<n;i++) x=rd(),y=rd(),add(x,y),add(y,x);x=n+1;
     ^~~
/in/foo.cc:37:58: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int i=1;i<n;i++) x=rd(),y=rd(),add(x,y),add(y,x);x=n+1;
                                                          ^
/in/foo.cc:38:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1;i<=m;i++) y=rd(),x=min(x,y),vis[y]=1;dfs(x,0);
     ^~~
/in/foo.cc:38:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int i=1;i<=m;i++) y=rd(),x=min(x,y),vis[y]=1;dfs(x,0);
                                                      ^~~
# 状态 耗时 内存占用
#1 Accepted 7ms 9.449 MiB
#2 Accepted 7ms 9.465 MiB
#3 Wrong Answer 47ms 11.941 MiB
#4 Accepted 45ms 11.941 MiB
#5 Accepted 38ms 11.941 MiB
#6 Accepted 35ms 11.938 MiB
#7 Wrong Answer 34ms 11.938 MiB
#8 Accepted 36ms 11.941 MiB
#9 Wrong Answer 37ms 11.941 MiB
#10 Wrong Answer 31ms 11.93 MiB

信息

递交者
类型
递交
题目
怪兽(superm)
题目数据
下载
语言
C++
递交时间
2019-10-09 17:45:42
评测时间
2019-10-09 17:45:42
评测机
分数
60
总耗时
322ms
峰值内存
11.941 MiB