grader.c: In function 'int main()':
grader.c:18:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
int res;
^~~
game.cpp: In function 'void update2(int, int, int, int, int)':
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:38:17: note: in expansion of macro 'mid'
if(y <= mid + 0){
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:40:35: note: in expansion of macro 'mid'
update2(ls[now] , l , mid + 0 , y , val);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:42:12: note: in expansion of macro 'mid'
if(mid + 1 <= y){
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:44:31: note: in expansion of macro 'mid'
update2(rs[now] , mid + 1 , r , y , val);
^~~
game.cpp: In function 'void update1(int, int, int, int, int, int)':
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:55:17: note: in expansion of macro 'mid'
if(x <= mid + 0){
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:57:35: note: in expansion of macro 'mid'
update1(ls[now] , l , mid + 0 , x , y , val);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:59:12: note: in expansion of macro 'mid'
if(mid + 1 <= x){
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:61:31: note: in expansion of macro 'mid'
update1(rs[now] , mid + 1 , r , x , y , val);
^~~
game.cpp: In function 'long long int query2(int, int, int, int, int)':
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:73:19: note: in expansion of macro 'mid'
else if(qr <= mid + 0) return query2(ls[now] , l , mid + 0 , ql , qr);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:73:56: note: in expansion of macro 'mid'
else if(qr <= mid + 0) return query2(ls[now] , l , mid + 0 , ql , qr);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:74:13: note: in expansion of macro 'mid'
else if(mid + 1 <= ql) return query2(rs[now] , mid + 1 , r , ql , qr);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:74:52: note: in expansion of macro 'mid'
else if(mid + 1 <= ql) return query2(rs[now] , mid + 1 , r , ql , qr);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:75:36: note: in expansion of macro 'mid'
else _gcd(query2(ls[now] , l , mid + 0 , ql , qr) , query2(rs[now] , mid + 1 , r , ql , qr));
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:75:74: note: in expansion of macro 'mid'
else _gcd(query2(ls[now] , l , mid + 0 , ql , qr) , query2(rs[now] , mid + 1 , r , ql , qr));
^~~
game.cpp: In function 'long long int query1(int, int, int, int, int, int, int)':
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:80:19: note: in expansion of macro 'mid'
else if(qr <= mid + 0) return query1(ls[now] , l , mid + 0 , ql , qr , c , d);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:80:56: note: in expansion of macro 'mid'
else if(qr <= mid + 0) return query1(ls[now] , l , mid + 0 , ql , qr , c , d);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:81:13: note: in expansion of macro 'mid'
else if(mid + 1 <= ql) return query1(rs[now] , mid + 1 , r , ql , qr , c , d);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:81:52: note: in expansion of macro 'mid'
else if(mid + 1 <= ql) return query1(rs[now] , mid + 1 , r , ql , qr , c , d);
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:82:38: note: in expansion of macro 'mid'
return _gcd(query1(ls[now] , l , mid + 0 , ql , qr , c , d)
^~~
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:83:34: note: in expansion of macro 'mid'
, query1(rs[now] , mid + 1 , r , ql , qr , c , d));
^~~
game.cpp: In function 'long long int query2(int, int, int, int, int)':
game.cpp:76:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^