/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:10:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (f[j]==-1) dfs(j);if (f[j]+1>f[i]) f[i]=f[j]+1;}
        ^~
/in/foo.cc:10:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (f[j]==-1) dfs(j);if (f[j]+1>f[i]) f[i]=f[j]+1;}
                             ^~
/in/foo.cc:11:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (f[i]==-1) f[i]=0;if (f[i]>ans) ans=f[i];r++;h[i]=r;
        ^~
/in/foo.cc:11:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (f[i]==-1) f[i]=0;if (f[i]>ans) ans=f[i];r++;h[i]=r;
                             ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=1;i<=n;i++) if (f[i]==-1) dfs(i);printf("%d",ans);
        ^~~
/in/foo.cc:22:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=1;i<=n;i++) if (f[i]==-1) dfs(i);printf("%d",ans);
                                                ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 6ms 4.211 MiB
#2 Accepted 7ms 4.199 MiB
#3 Wrong Answer 8ms 3.5 MiB
#4 Accepted 4ms 2.695 MiB
#5 Accepted 4ms 768.0 KiB

信息

递交者
类型
递交
题目
P1094 关系运算图
语言
C++
递交时间
2017-09-04 04:03:01
评测时间
2017-09-04 04:03:01
评测机
分数
80
总耗时
31ms
峰值内存
4.211 MiB