/ Vijos /

记录详情

Accepted

foo.cc: In function 'int inn()':
foo.cc:20:14: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     x=ch^'0';while((ch=gc)>='0'&&ch<='9')
              ^~~~~
foo.cc:21:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
         x=(x<<1)+(x<<3)+(ch^'0');return x;
                                  ^~~~~~
foo.cc: In function 'int build(segment*&, int, int)':
foo.cc:43:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(l==r) return rt->mx=d[tm[l]];int mid=(l+r)>>1;
     ^~
foo.cc:43:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(l==r) return rt->mx=d[tm[l]];int mid=(l+r)>>1;
                                     ^~~
foo.cc: In function 'int query(segment*&, int, int)':
foo.cc:58:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(s<=l&&r<=t) return rt->mx;int ans=0;
     ^~
foo.cc:58:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(s<=l&&r<=t) return rt->mx;int ans=0;
                                  ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 1.059 MiB
#2 Accepted 381ms 29.227 MiB
#3 Accepted 391ms 27.93 MiB
#4 Accepted 601ms 29.422 MiB
#5 Accepted 639ms 28.016 MiB
#6 Accepted 538ms 26.359 MiB
#7 Accepted 208ms 15.16 MiB
#8 Accepted 398ms 14.906 MiB
#9 Accepted 522ms 28.188 MiB
#10 Accepted 503ms 28.652 MiB

信息

递交者
类型
递交
题目
P2014 树点涂色
语言
C++
递交时间
2021-08-10 08:30:33
评测时间
2021-08-10 08:30:33
评测机
分数
100
总耗时
4190ms
峰值内存
29.422 MiB