/ Vijos /

记录详情

Accepted

foo.cc: In function 'void rotate(int)':
foo.cc:29:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   29 |   if(z)c[z][c[z][1]==y]=x;fa[x]=z;
      |   ^~
foo.cc:29:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   29 |   if(z)c[z][c[z][1]==y]=x;fa[x]=z;
      |                           ^~
foo.cc: In function 'void build(int&, int, int)':
foo.cc:53:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   53 |   int mid=l+r>>1;val[k]=a[mid];
      |           ~^~
foo.cc: In function 'int main()':
foo.cc:96:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   96 |     scanf("\n%s",s);
      |     ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 238ms 30.422 MiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 55ms 18.586 MiB
#4 Accepted 60ms 21.566 MiB
#5 Accepted 64ms 21.633 MiB
#6 Accepted 36ms 18.0 MiB
#7 Accepted 37ms 18.125 MiB
#8 Accepted 53ms 17.617 MiB
#9 Accepted 122ms 18.746 MiB
#10 Accepted 154ms 18.641 MiB

信息

递交者
类型
递交
题目
P1856 文本编辑器
语言
C++
递交时间
2022-02-03 16:51:30
评测时间
2022-02-03 16:51:30
评测机
分数
100
总耗时
826ms
峰值内存
30.422 MiB