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)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:8:21: note: in expansion of macro 'tm'
#define sol L[v],tl,tm
^~
game.cpp:41:19: note: in expansion of macro 'sol'
return gcd(qry_y(sol) , qry_y(sag));
^~~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:9:18: note: in expansion of macro 'tm'
#define sag R[v],tm+1,tr
^~
game.cpp:41:32: note: in expansion of macro 'sag'
return gcd(qry_y(sol) , qry_y(sag));
^~~
game.cpp: In function 'll qry_x(int, int, int)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:8:21: note: in expansion of macro 'tm'
#define sol L[v],tl,tm
^~
game.cpp:46:19: note: in expansion of macro 'sol'
return gcd(qry_x(sol) , qry_x(sag));
^~~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:9:18: note: in expansion of macro 'tm'
#define sag R[v],tm+1,tr
^~
game.cpp:46:32: note: in expansion of macro 'sag'
return gcd(qry_x(sol) , qry_x(sag));
^~~
game.cpp: In function 'void up_y(int, int, int, int, int)':
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:54:12: note: in expansion of macro 'tm'
if(posy > tm) { if(!R[v]) R[v] = ++id; up_y(sag,R[r1],R[r2]); }
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:9:18: note: in expansion of macro 'tm'
#define sag R[v],tm+1,tr
^~
game.cpp:54:46: note: in expansion of macro 'sag'
if(posy > tm) { if(!R[v]) R[v] = ++id; up_y(sag,R[r1],R[r2]); }
^~~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:8:21: note: in expansion of macro 'tm'
#define sol L[v],tl,tm
^~
game.cpp:55:46: note: in expansion of macro 'sol'
else { if(!L[v]) L[v] = ++id; up_y(sol,L[r1],L[r2]); }
^~~
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:60:13: note: in expansion of macro 'tm'
if(posx > tm) { if(!R[v]) R[v] = ++id; up_x(sag); }
^~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:9:18: note: in expansion of macro 'tm'
#define sag R[v],tm+1,tr
^~
game.cpp:60:47: note: in expansion of macro 'sag'
if(posx > tm) { if(!R[v]) R[v] = ++id; up_x(sag); }
^~~
game.cpp:60:50: error: too few arguments to function 'void up_x(int, int, int, int, int, ll)'
if(posx > tm) { if(!R[v]) R[v] = ++id; up_x(sag); }
^
game.cpp:58:6: note: declared here
void up_x(_, int posx, int posy, ll t){
^~~~
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
game.cpp:8:21: note: in expansion of macro 'tm'
#define sol L[v],tl,tm
^~
game.cpp:61:47: note: in expansion of macro 'sol'
else { if(!L[v]) L[v] = ++id; up_x(sol); }
^~~
game.cpp:61:50: error: too few arguments to function 'void up_x(int, int, int, int, int, ll)'
else { if(!L[v]) L[v] = ++id; up_x(sol); }
^
game.cpp:58:6: note: declared here
void up_x(_, int posx, int posy, ll t){
^~~~
game.cpp: In function 'void update(int, int, ll)':
game.cpp:72:14: error: too few arguments to function 'void up_x(int, int, int, int, int, ll)'
up_x(1,0,mod);
^
game.cpp:58:6: note: declared here
void up_x(_, int posx, int posy, ll t){
^~~~