/ Vijos /

记录详情

Runtime Error

/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]];}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]];}g[i]=1;}
                                   ^~
/in/foo.cc: In function 'void fmin(int)':
/in/foo.cc:26: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]];}g[i]=1;}
        ^~
/in/foo.cc:26: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]];}g[i]=1;}
                                   ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35: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:35: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:37:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);r=1;a[r]=x[1];b[r]=y[1];
        ^~~
/in/foo.cc:37: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);r=1;a[r]=x[1];b[r]=y[1];
                                   ^
/in/foo.cc:43: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:43: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:44:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=n>>1;i;i--) heap(i);r=n;
        ^~~
/in/foo.cc:44: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:47:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);a[1]=x[1];b[1]=y[1];
        ^~~
/in/foo.cc:47: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);a[1]=x[1];b[1]=y[1];
                                   ^
/in/foo.cc:54:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);r=1;a[r]=x[1];b[r]=y[1];
        ^~~
/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);r=1;a[r]=x[1];b[r]=y[1];
                                   ^
/in/foo.cc:61:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=s>>1;i;i--) down(i);a[1]=x[1];b[1]=y[1];
        ^~~
/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);a[1]=x[1];b[1]=y[1];
                                   ^
# 状态 耗时 内存占用
#1 Accepted 4ms 8.258 MiB
#2 Accepted 3ms 10.25 MiB
#3 Accepted 12ms 8.297 MiB
#4 Accepted 95ms 8.797 MiB
#5 Accepted 106ms 8.637 MiB
#6 Runtime Error 12ms 16.25 MiB
#7 Runtime Error 13ms 16.332 MiB
#8 Runtime Error 26ms 16.5 MiB
#9 Runtime Error 45ms 16.461 MiB
#10 Runtime Error 43ms 16.363 MiB

信息

递交者
类型
递交
题目
P1754 最优贸易
语言
C++
递交时间
2017-09-07 03:13:14
评测时间
2017-09-07 03:13:14
评测机
分数
50
总耗时
364ms
峰值内存
16.5 MiB