/ Vijos /

记录详情

Accepted

foo.cc: In function ‘void splay(int, int&)’:
foo.cc:66:24: warning: suggest parentheses around comparison in operand of ‘^’ [-Wparentheses]
   66 |             if (c[z][0]==y ^ c[y][0]==x)rotate(x,k);
      |                 ~~~~~~~^~~
In function ‘int split(int, int)’,
    inlined from ‘void modify(int, int, int)’ at foo.cc:107:17,
    inlined from ‘int main()’ at foo.cc:183:35:
foo.cc:95:34: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized]
   95 |     rint x=find(rt,k),y=find(rt,k+tot+1);
      |                                 ~^~~~
foo.cc: In function ‘int main()’:
foo.cc:175:10: note: ‘k’ was declared here
  175 |     rint k,tot,val;char ch[10];
      |          ^
In function ‘int split(int, int)’,
    inlined from ‘void modify(int, int, int)’ at foo.cc:107:17,
    inlined from ‘int main()’ at foo.cc:183:35:
foo.cc:95:34: warning: ‘tot’ may be used uninitialized [-Wmaybe-uninitialized]
   95 |     rint x=find(rt,k),y=find(rt,k+tot+1);
      |                                 ~^~~~
foo.cc: In function ‘int main()’:
foo.cc:175:12: note: ‘tot’ was declared here
  175 |     rint k,tot,val;char ch[10];
      |            ^~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 3ms 580.0 KiB
#3 Accepted 37ms 1.273 MiB
#4 Accepted 106ms 1.941 MiB
#5 Accepted 147ms 1.344 MiB
#6 Accepted 140ms 3.914 MiB
#7 Accepted 220ms 17.422 MiB
#8 Accepted 249ms 4.188 MiB
#9 Accepted 161ms 17.715 MiB
#10 Accepted 201ms 18.883 MiB

信息

递交者
类型
递交
题目
P1835 维护数列
语言
C++
递交时间
2024-07-04 17:47:53
评测时间
2024-07-04 17:47:53
评测机
分数
100
总耗时
1273ms
峰值内存
18.883 MiB