/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void SGT::Build(int, int, int)':
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     #define mid (l + r >> 1)
                  ~~^~~
/in/foo.cc:48:27: note: in expansion of macro 'mid'
     #define lson x << 1,l,mid
                           ^~~
/in/foo.cc:60:20: note: in expansion of macro 'lson'
         else Build(lson),Build(rson),Upd(x);
                    ^~~~
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     #define mid (l + r >> 1)
                  ~~^~~
/in/foo.cc:49:29: note: in expansion of macro 'mid'
     #define rson x << 1 | 1,mid + 1,r
                             ^~~
/in/foo.cc:60:32: note: in expansion of macro 'rson'
         else Build(lson),Build(rson),Upd(x);
                                ^~~~
/in/foo.cc: In function 'void SGT::Modify(int, int, int)':
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     #define mid (l + r >> 1)
                  ~~^~~
/in/foo.cc:48:27: note: in expansion of macro 'mid'
     #define lson x << 1,l,mid
                           ^~~
/in/foo.cc:66:22: note: in expansion of macro 'lson'
         Dw(x),Modify(lson),Modify(rson),Upd(x);
                      ^~~~
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     #define mid (l + r >> 1)
                  ~~^~~
/in/foo.cc:49:29: note: in expansion of macro 'mid'
     #define rson x << 1 | 1,mid + 1,r
                             ^~~
/in/foo.cc:66:35: note: in expansion of macro 'rson'
         Dw(x),Modify(lson),Modify(rson),Upd(x);
                                   ^~~~
/in/foo.cc: In function 'int SGT::Qry(int, int, int)':
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     #define mid (l + r >> 1)
                  ~~^~~
/in/foo.cc:48:27: note: in expansion of macro 'mid'
     #define lson x << 1,l,mid
                           ^~~
/in/foo.cc:73:30: note: in expansion of macro 'lson'
         return Dw(x),max(Qry(lson),Qry(rson));
                              ^~~~
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     #define mid (l + r >> 1)
                  ~~^~~
/in/foo.cc:49:29: note: in expansion of macro 'mid'
     #define rson x << 1 | 1,mid + 1,r
                             ^~~
/in/foo.cc:73:40: note: in expansion of macro 'rson'
         return Dw(x),max(Qry(lson),Qry(rson));
                                        ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:122:145: warning: too many arguments for format [-Wformat-extra-args]
         else if(op == 2)scanf("%d%d",&x,&y),z = LCA(x,y),printf("%d\n",SGT::Q(st[x],st[x]) + SGT::Q(st[y],st[y]) - 2 * SGT::Q(st[z],st[z]) + 1,z);
                                                                                                                                                 ^
# 状态 耗时 内存占用
#1 Accepted 8ms 17.684 MiB
#2 Accepted 227ms 26.449 MiB
#3 Accepted 224ms 24.941 MiB
#4 Accepted 251ms 26.684 MiB
#5 Accepted 273ms 23.508 MiB
#6 Accepted 312ms 21.301 MiB
#7 Accepted 100ms 22.445 MiB
#8 Accepted 175ms 20.75 MiB
#9 Accepted 239ms 25.188 MiB
#10 Accepted 259ms 25.805 MiB

信息

递交者
类型
递交
题目
P2014 树点涂色
语言
C++
递交时间
2017-06-10 13:37:36
评测时间
2017-06-10 13:37:36
评测机
分数
100
总耗时
2072ms
峰值内存
26.684 MiB