/ SUOI /

记录详情

Accepted

/in/foo.cc: In function 'void build(int&, int, int)':
/in/foo.cc:40:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int m=l+r>>1;
        ~^~
/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:53:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(c) fa[c]=f; ch[f][b]=c;
  ^~
/in/foo.cc:53:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(c) fa[c]=f; ch[f][b]=c;
                 ^~
/in/foo.cc: In function 'void splay(int, int)':
/in/foo.cc:61:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else rotate(p);rotate(p);
   ^~~~
/in/foo.cc:61:18: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   else rotate(p);rotate(p);
                  ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:109:11: warning: unused variable 'j' [-Wunused-variable]
     int i,j,k;
           ^
/in/foo.cc:109:13: warning: unused variable 'k' [-Wunused-variable]
     int i,j,k;
             ^
# 状态 耗时 内存占用
#1 Accepted 5ms 12.25 MiB
#2 Accepted 5ms 12.363 MiB
#3 Accepted 5ms 12.258 MiB
#4 Accepted 6ms 12.375 MiB
#5 Accepted 6ms 12.25 MiB
#6 Accepted 4ms 12.25 MiB
#7 Accepted 523ms 54.375 MiB
#8 Accepted 547ms 53.125 MiB
#9 Accepted 580ms 55.75 MiB
#10 Accepted 566ms 53.238 MiB

信息

递交者
类型
递交
题目
#24 平衡树一
语言
C++
递交时间
2018-10-07 20:53:49
评测时间
2018-10-07 20:53:49
评测机
分数
100
总耗时
2250ms
峰值内存
55.75 MiB