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, long long int)':
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:39: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:41: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:43: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:45: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, long long int)':
game.cpp:22:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l + r >> 1)
~~^~~
game.cpp:56: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:58: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:60: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:62: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:74: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:74: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:75: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:75: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:76: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:76: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:81: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:81: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:82: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:82: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:83: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:84: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:77:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^