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:34: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:36: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:38: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:40: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:51: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:53: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:55: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:57: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:70: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:70: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:71: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:71: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:72:37: 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:72:75: 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:77: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:77: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:78: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:78: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:79:39: 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:80: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:73:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^