记录详情

Runtime Error

/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 Time Exceeded ≥1001ms ≥12.293 MiB
#2 Time Exceeded ≥1000ms ≥12.199 MiB
#3 Runtime Error 5ms 10.297 MiB
#4 Time Exceeded ≥1001ms ≥14.297 MiB
#5 Time Exceeded ≥1001ms ≥14.199 MiB
#6 Runtime Error 6ms 14.297 MiB
#7 Runtime Error 5ms 12.18 MiB
#8 Runtime Error 4ms 10.297 MiB
#9 Runtime Error 6ms 12.293 MiB
#10 Runtime Error 5ms 12.188 MiB

信息

递交者
类型
递交
题目
数对
题目数据
下载
语言
C++
递交时间
2019-10-09 16:33:24
评测时间
2019-10-09 16:33:49
评测机
分数
0
总耗时
4039ms
峰值内存
14.297 MiB