/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void Build(int, int, int)':
/in/foo.cc:127:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'void Modify(int, int, int, int, int, int)':
/in/foo.cc:139:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'int Ask(int, int, int, int, int)':
/in/foo.cc:163:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'void ModifyCol(int, int, int, int, int, int)':
/in/foo.cc:175:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'int AskCol(int, int, int, int)':
/in/foo.cc:188:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'void Modify(int, int)':
/in/foo.cc:195:12: warning: unused variable 'q' [-Wunused-variable]
     int p, q, r, c, nl = 0, nr = 0, toplastc, nextx;
            ^
/in/foo.cc:195:47: warning: unused variable 'nextx' [-Wunused-variable]
     int p, q, r, c, nl = 0, nr = 0, toplastc, nextx;
                                               ^~~~~
/in/foo.cc:220:57: warning: 'toplastc' may be used uninitialized in this function [-Wmaybe-uninitialized]
             nl = f[r], nr = g[r], x = fa[r], col_top[c] = toplastc;
                                              ~~~~~~~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 10ms 8.25 MiB
#2 Accepted 267ms 15.867 MiB
#3 Accepted 310ms 13.957 MiB
#4 Accepted 289ms 15.836 MiB
#5 Accepted 357ms 13.281 MiB
#6 Accepted 374ms 10.805 MiB
#7 Accepted 106ms 12.191 MiB
#8 Accepted 213ms 10.621 MiB
#9 Accepted 233ms 14.344 MiB
#10 Accepted 252ms 15.145 MiB

信息

递交者
类型
递交
题目
P2014 树点涂色
语言
C++
递交时间
2018-04-15 22:11:04
评测时间
2018-04-15 22:11:04
评测机
分数
100
总耗时
2416ms
峰值内存
15.867 MiB