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:8:13: error: 'l' was not declared in this scope
#define sol l,tl,tm
^
game.cpp:34: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:8:18: note: in expansion of macro 'tm'
#define sol l,tl,tm
^
game.cpp:34:19: note: in expansion of macro 'sol'
return gcd(qry_y(sol) , qry_y(sag));
^
game.cpp:9:13: error: 'r' was not declared in this scope
#define sag r,tm+1,tr
^
game.cpp:34:32: note: in expansion of macro 'sag'
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:15: note: in expansion of macro 'tm'
#define sag r,tm+1,tr
^
game.cpp:34: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:8:13: error: 'l' was not declared in this scope
#define sol l,tl,tm
^
game.cpp:39: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:8:18: note: in expansion of macro 'tm'
#define sol l,tl,tm
^
game.cpp:39:19: note: in expansion of macro 'sol'
return gcd(qry_x(sol) , qry_x(sag));
^
game.cpp:9:13: error: 'r' was not declared in this scope
#define sag r,tm+1,tr
^
game.cpp:39:32: note: in expansion of macro 'sag'
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:15: note: in expansion of macro 'tm'
#define sag r,tm+1,tr
^
game.cpp:39: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:49:12: note: in expansion of macro 'tm'
if(posy > tm) { if(!r) r = ++id; up_y(r,tm+1,tr,R[r1],R[r2]); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:49:42: note: in expansion of macro 'tm'
if(posy > tm) { if(!r) r = ++id; up_y(r,tm+1,tr,R[r1],R[r2]); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:50:45: note: in expansion of macro 'tm'
else { if(!l) l = ++id; up_y(l,tl,tm,L[r1],L[r2]); }
^
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:57:13: note: in expansion of macro 'tm'
if(posx > tm) { if(!r) r = ++id; up_x(r,tm+1,tr); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:57:43: note: in expansion of macro 'tm'
if(posx > tm) { if(!r) r = ++id; up_x(r,tm+1,tr); }
^
game.cpp:7:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
game.cpp:58:46: note: in expansion of macro 'tm'
else { if(!l) l = ++id; up_x(l,tl,tm); }
^