/ 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 (d[b[j]]>d[i]) d[i]=d[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 (d[b[j]]>d[i]) d[i]=d[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 (f[b[j]]<f[i]) f[i]=f[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 (f[b[j]]<f[i]) f[i]=f[b[j]];}g[i]=1;}
                                   ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35: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:35: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:41: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:41: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:42:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (i=n>>1;i;i--) heap(i);r=n;
        ^~~
/in/foo.cc:42: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:45: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:45: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:53: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:53: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:60: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:60: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 5ms 8.25 MiB
#2 Wrong Answer 5ms 8.324 MiB
#3 Wrong Answer 8ms 8.316 MiB
#4 Wrong Answer 93ms 8.988 MiB
#5 Wrong Answer 138ms 8.875 MiB
#6 Runtime Error 11ms 16.332 MiB
#7 Runtime Error 13ms 16.25 MiB
#8 Runtime Error 38ms 16.316 MiB
#9 Runtime Error 47ms 16.473 MiB
#10 Runtime Error 44ms 16.434 MiB

信息

递交者
类型
递交
题目
P1754 最优贸易
语言
C++
递交时间
2017-09-07 02:51:17
评测时间
2017-09-07 02:51:17
评测机
分数
10
总耗时
405ms
峰值内存
16.473 MiB