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 'll qry_y(int, int, int, int, int)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:36:29: note: in expansion of macro 'tm'
return gcd(qry_y(y_L[v],tl,tm,ly,ry) , qry_y(y_R[v],tm+1,tr,ly,ry));
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:36:54: note: in expansion of macro 'tm'
return gcd(qry_y(y_L[v],tl,tm,ly,ry) , qry_y(y_R[v],tm+1,tr,ly,ry));
^~
game.cpp: In function 'll qry_x(int, int, int, int, int, int, int)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:41:29: note: in expansion of macro 'tm'
return gcd(qry_x(x_L[v],tl,tm,lx,rx,ly,ry) , qry_x(x_R[v],tm+1,tr,lx,rx,ly,ry));
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:41:60: note: in expansion of macro 'tm'
return gcd(qry_x(x_L[v],tl,tm,lx,rx,ly,ry) , qry_x(x_R[v],tm+1,tr,lx,rx,ly,ry));
^~
game.cpp: In function 'void up_y(int, int, int, int, int, int, ll)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:49:12: note: in expansion of macro 'tm'
if(posy > tm) { if(!y_R[v]) y_R[v] = ++y_id; up_y(y_R[v],tm+1,tr,posy,R[r1],R[r2],t); }
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:49:59: note: in expansion of macro 'tm'
if(posy > tm) { if(!y_R[v]) y_R[v] = ++y_id; up_y(y_R[v],tm+1,tr,posy,R[r1],R[r2],t); }
^~
game.cpp:49:72: error: 'R' was not declared in this scope
if(posy > tm) { if(!y_R[v]) y_R[v] = ++y_id; up_y(y_R[v],tm+1,tr,posy,R[r1],R[r2],t); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:50:62: note: in expansion of macro 'tm'
else { if(!y_L[v]) y_L[v] = ++y_id; up_y(y_L[v],tl,tm, posy,L[r1],L[r2],t); }
^~
game.cpp:50:72: error: 'L' was not declared in this scope
else { if(!y_L[v]) y_L[v] = ++y_id; up_y(y_L[v],tl,tm, posy,L[r1],L[r2],t); }
^
game.cpp:51:16: error: 'L' was not declared in this scope
s[v] = gcd(s[ L[v] ] , s[ R[v] ]);
^
game.cpp:51:28: error: 'R' was not declared in this scope
s[v] = gcd(s[ L[v] ] , s[ R[v] ]);
^
game.cpp: In function 'void up_x(int, int, int, int, int, ll)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:55:13: note: in expansion of macro 'tm'
if(posx > tm) { if(!x_R[v]) x_R[v] = ++x_id; up_x(x_R[v],tm+1,tr,posx,posy,t); }
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:55:60: note: in expansion of macro 'tm'
if(posx > tm) { if(!x_R[v]) x_R[v] = ++x_id; up_x(x_R[v],tm+1,tr,posx,posy,t); }
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl + tr >> 1)
~~~^~~
game.cpp:56:63: note: in expansion of macro 'tm'
else { if(!x_L[v]) x_L[v] = ++x_id; up_x(x_L[v],tl,tm, posx,posy,t); }
^~
game.cpp:59:36: error: 'L' was not declared in this scope
up_y(x_to_Y[v],0,mod,posy,x_to_Y[ L[v] ],x_to_Y[ R[v] ],(tl==tr?t:-1));
^
game.cpp:59:51: error: 'R' was not declared in this scope
up_y(x_to_Y[v],0,mod,posy,x_to_Y[ L[v] ],x_to_Y[ R[v] ],(tl==tr?t:-1));
^