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:36:27: note: in expansion of macro 'tm'
return gcd(qry_y(L[v],tl,tm) , qry_y(R[v],tm+1,tr));
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:36:44: note: in expansion of macro 'tm'
return gcd(qry_y(L[v],tl,tm) , qry_y(R[v],tm+1,tr));
^
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:41:27: note: in expansion of macro 'tm'
return gcd(qry_x(L[v],tl,tm) , qry_x(R[v],tm+1,tr));
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:41:44: note: in expansion of macro 'tm'
return gcd(qry_x(L[v],tl,tm) , qry_x(R[v],tm+1,tr));
^
game.cpp: In function 'void up_y(int, int, int, int, int, bool)':
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(!R[v]) R[v] = ++id; up_y(R[v],tm+1,tr,R[r1],R[r2],h); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:49:51: note: in expansion of macro 'tm'
if(posy > tm) { if(!R[v]) R[v] = ++id; up_y(R[v],tm+1,tr,R[r1],R[r2],h); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:50:54: note: in expansion of macro 'tm'
else { if(!L[v]) L[v] = ++id; up_y(L[v],tl,tm,L[r1],L[r2],h); }
^
game.cpp: In function 'void up_x(int, int, int)':
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(!R[v]) R[v] = ++id; up_x(R[v],tm+1,tr); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:55:52: note: in expansion of macro 'tm'
if(posx > tm) { if(!R[v]) R[v] = ++id; up_x(R[v],tm+1,tr); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:56:55: note: in expansion of macro 'tm'
else { if(!L[v]) L[v] = ++id; up_x(L[v],tl,tm); }
^