/ Vijos /

记录详情

Accepted

/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:41: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:41: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:57: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:57: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 4ms 8.359 MiB
#2 Accepted 4ms 8.25 MiB
#3 Accepted 10ms 8.25 MiB
#4 Accepted 87ms 8.645 MiB
#5 Accepted 108ms 8.781 MiB
#6 Accepted 3ms 8.25 MiB
#7 Accepted 9ms 8.25 MiB
#8 Accepted 20ms 10.375 MiB
#9 Accepted 41ms 8.445 MiB
#10 Accepted 46ms 8.477 MiB

信息

递交者
类型
递交
题目
P1754 最优贸易
语言
C++
递交时间
2017-09-07 04:55:15
评测时间
2017-09-07 04:55:15
评测机
分数
100
总耗时
338ms
峰值内存
10.375 MiB