/ Vijos /

记录详情

Compile Error

foo.cpp: In member function 'void tree::build(ll*, int, int, int)':
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:3:13: note: in expansion of macro 'M'
 #define L l,M,P
             ^
foo.cpp:28:12: note: in expansion of macro 'L'
    build(s,L);
            ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:4:11: note: in expansion of macro 'M'
 #define R M+1,r,S
           ^
foo.cpp:29:12: note: in expansion of macro 'R'
    build(s,R);
            ^
foo.cpp: In member function 'void tree::add(int, ll, int, int, int)':
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:36:10: note: in expansion of macro 'M'
    if(y<=M)
          ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:3:13: note: in expansion of macro 'M'
 #define L l,M,P
             ^
foo.cpp:37:13: note: in expansion of macro 'L'
     add(y,z,L);
             ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:4:11: note: in expansion of macro 'M'
 #define R M+1,r,S
           ^
foo.cpp:39:13: note: in expansion of macro 'R'
     add(y,z,R);
             ^
foo.cpp: In member function 'll tree::query(int, int, int, int, int)':
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:45:12: note: in expansion of macro 'M'
   ?a[k]:t<=M
            ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:3:13: note: in expansion of macro 'M'
 #define L l,M,P
             ^
foo.cpp:46:14: note: in expansion of macro 'L'
   ?query(s,t,L):s>M
              ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:46:19: note: in expansion of macro 'M'
   ?query(s,t,L):s>M
                   ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:4:11: note: in expansion of macro 'M'
 #define R M+1,r,S
           ^
foo.cpp:47:14: note: in expansion of macro 'R'
   ?query(s,t,R)
              ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:48:18: note: in expansion of macro 'M'
   :__gcd(query(s,M,L),
                  ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:3:13: note: in expansion of macro 'M'
 #define L l,M,P
             ^
foo.cpp:48:20: note: in expansion of macro 'L'
   :__gcd(query(s,M,L),
                    ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:49:9: note: in expansion of macro 'M'
   query(M+1,t,R));
         ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:4:11: note: in expansion of macro 'M'
 #define R M+1,r,S
           ^
foo.cpp:49:15: note: in expansion of macro 'R'
   query(M+1,t,R));
               ^
foo.cpp: In member function 'void tree::merge(ll*, ll*, int, int, int)':
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:3:13: note: in expansion of macro 'M'
 #define L l,M,P
             ^
foo.cpp:53:14: note: in expansion of macro 'L'
    merge(s,t,L);
              ^
foo.cpp:9:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (l+r>>1)
             ^
foo.cpp:4:11: note: in expansion of macro 'M'
 #define R M+1,r,S
           ^
foo.cpp:54:14: note:

信息

递交者
类型
递交
题目
P1806 魔幻棋盘
语言
C++
递交时间
2016-09-18 10:51:13
评测时间
2016-09-18 10:51:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes