记录详情

Wrong Answer

/in/foo.cc: In function 'bool dfs(int, int)':
/in/foo.cc:30:2: 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:82: 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:2: 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:55: 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:2: 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:51: 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 9ms 9.543 MiB
#2 Accepted 18ms 9.824 MiB
#3 Wrong Answer 57ms 11.941 MiB
#4 Accepted 38ms 11.93 MiB
#5 Accepted 39ms 11.93 MiB
#6 Accepted 33ms 11.941 MiB
#7 Wrong Answer 44ms 11.941 MiB
#8 Accepted 36ms 11.93 MiB
#9 Wrong Answer 53ms 11.926 MiB
#10 Wrong Answer 136ms 11.832 MiB

信息

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