/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'bool ok(int, int)':
/in/foo.cc:5:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (x[i]>x[j]) return true;if (x[i]<x[j]) return false;
        ^~
/in/foo.cc:5:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (x[i]>x[j]) return true;if (x[i]<x[j]) return false;
                                   ^~
/in/foo.cc:6:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (y[i]>y[j]) return true;if (y[i]<y[j]) return false;return false;}
        ^~
/in/foo.cc:6:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (y[i]>y[j]) return true;if (y[i]<y[j]) return false;return false;}
                                   ^~
/in/foo.cc: In function 'int work(int)':
/in/foo.cc:8:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (h[i]!=i) h[i]=work(h[i]);return h[i];}
        ^~
/in/foo.cc:8:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (h[i]!=i) h[i]=work(h[i]);return h[i];}
                                     ^~~~~~
/in/foo.cc: In function 'void fmax(int)':
/in/foo.cc:23:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (g[b[j]]==0) fmax(b[j]);if (p[b[j]]>p[i]) p[i]=p[b[j]];j++;}g[i]=1;}
        ^~
/in/foo.cc:23:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (g[b[j]]==0) fmax(b[j]);if (p[b[j]]>p[i]) p[i]=p[b[j]];j++;}g[i]=1;}
                                   ^~
/in/foo.cc: In function 'void fmin(int)':
/in/foo.cc:27:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (g[b[j]]==0) fmin(b[j]);if (q[b[j]]<q[i]) q[i]=q[b[j]];j++;}g[i]=1;}
        ^~
/in/foo.cc:27:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (g[b[j]]==0) fmin(b[j]);if (q[b[j]]<q[i]) q[i]=q[b[j]];j++;}g[i]=1;}
                                   ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (c[i]>p[w]) p[w]=c[i];if (c[i]<q[w]) q[w]=c[i];}
        ^~
/in/foo.cc:36:33: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (c[i]>p[w]) p[w]=c[i];if (c[i]<q[w]) q[w]=c[i];}
                                 ^~
/in/foo.cc:38:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));w=s;r=0;
        ^~~
/in/foo.cc:38:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));w=s;r=0;
                                   ^~~~~~
/in/foo.cc:40:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (x[1]==y[1]) continue;if ((x[1]==a[r])&&(y[1]==b[r])) continue;
        ^~
/in/foo.cc:40:33: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (x[1]==y[1]) continue;if ((x[1]==a[r])&&(y[1]==b[r])) continue;
                                 ^~
/in/foo.cc:44:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=1;i<=n;i++) if (d[i]==0) dfs(i);for (i=1;i<=n;i++) d[i]=i;
        ^~~
/in/foo.cc:44:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=1;i<=n;i++) if (d[i]==0) dfs(i);for (i=1;i<=n;i++) d[i]=i;
                                               ^~~
/in/foo.cc:45:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=n>>1;i;i--) heap(i);r=n;
        ^~~
/in/foo.cc:45:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=n>>1;i;i--) heap(i);r=n;
                                   ^
/in/foo.cc:48:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));r=s;
        ^~~
/in/foo.cc:48:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));r=s;
                                   ^~~~~~
/in/foo.cc:54:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));w=s;r=0;
        ^~~
/in/foo.cc:54:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));w=s;r=0;
                                   ^~~~~~
/in/foo.cc:56:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (x[1]==y[1]) continue;if ((x[1]==a[r])&&(y[1]==b[r])) continue;
        ^~
/in/foo.cc:56:33: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (x[1]==y[1]) continue;if ((x[1]==a[r])&&(y[1]==b[r])) continue;
                                 ^~
/in/foo.cc:61:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));r=s;
        ^~~
/in/foo.cc:61:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
        for (i=s>>1;i;i--) down(i);memset(c,0,(n+1)*sizeof(int));r=s;
                                   ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 8.25 MiB
#2 Accepted 5ms 8.348 MiB
#3 Accepted 9ms 8.25 MiB
#4 Accepted 109ms 8.625 MiB
#5 Accepted 110ms 8.625 MiB
#6 Wrong Answer 5ms 8.25 MiB
#7 Wrong Answer 11ms 10.25 MiB
#8 Wrong Answer 33ms 8.375 MiB
#9 Wrong Answer 37ms 8.457 MiB
#10 Wrong Answer 34ms 8.469 MiB

信息

递交者
类型
递交
题目
P1754 最优贸易
语言
C++
递交时间
2017-09-07 04:08:02
评测时间
2017-09-07 04:08:02
评测机
分数
50
总耗时
360ms
峰值内存
10.25 MiB