/ Vijos /

记录详情

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 Runtime Error 12ms 17.398 MiB
#2 Wrong Answer 7ms 9.461 MiB
#3 Wrong Answer 7ms 9.418 MiB
#4 Wrong Answer 7ms 9.387 MiB
#5 Wrong Answer 19ms 9.457 MiB
#6 Runtime Error 19ms 17.367 MiB
#7 Wrong Answer 7ms 9.438 MiB
#8 Time Exceeded ≥1005ms ≥9.434 MiB
#9 Runtime Error 6ms 9.449 MiB
#10 Runtime Error 12ms 17.449 MiB

信息

递交者
类型
递交
题目
P1169 丘比特的烦恼
语言
C++
递交时间
2019-10-09 16:36:16
评测时间
2019-10-09 16:36:16
评测机
分数
0
总耗时
1105ms
峰值内存
17.449 MiB