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 buildY(int, int, int, int, int, int)':
game.cpp:14:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
} int mid = ly + ry >> 1;
^
game.cpp: In function 'void buildX(int, int, int)':
game.cpp:21:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = lx + rx >> 1;
^
game.cpp: In function 'void updateY(int, int, int, int, int, int, int, int)':
game.cpp:31:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
} int mid = ly + ry >> 1;
^
game.cpp: In function 'void updateX(int, int, int, int, int, int)':
game.cpp:38:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = lx + rx >> 1;
^
game.cpp: In function 'int queryY(int, int, int, int, int, int)':
game.cpp:48:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = ly + ry >> 1;
^
game.cpp: In function 'int queryX(int, int, int, int, int, int, int)':
game.cpp:56:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
} int mid = lx + rx >> 1;
^
game.cpp: At global scope:
game.cpp:61:11: error: redefinition of 'const int maxn'
const int maxn = 1000;
^
game.cpp:7:11: note: 'const int maxn' previously defined here
const int maxn = 2001;
^
game.cpp:62:24: error: redefinition of 'int tree [8004][8004]'
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:8:5: note: 'int tree [8004][8004]' previously declared here
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:62:27: error: redefinition of 'int n'
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:8:27: note: 'int n' previously declared here
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:62:30: error: redefinition of 'int m'
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:8:30: note: 'int m' previously declared here
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:62:47: error: redefinition of 'int arr [2001][2001]'
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp:8:33: note: 'int arr [2001][2001]' previously declared here
int tree[4*maxn][4*maxn], n, m, arr[maxn][maxn];
^
game.cpp: In function 'void buildY(int, int, int, int, int, int)':
game.cpp:63:6: error: redefinition of 'void buildY(int, int, int, int, int, int)'
void buildY(int ndx, int lx, int rx, int ndy, int ly, int ry) {
^
game.cpp:9:6: note: 'void buildY(int, int, int, int, int, int)' previously defined here
void buildY(int ndx, int lx, int rx, int ndy, int ly, int ry) {
^
game.cpp:68:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
} int mid = ly + ry >> 1;
^
game.cpp: In function 'void buildX(int, int, int)':
game.cpp:73:6: error: redefinition of 'void buildX(int, int, int)'
void buildX(int ndx, int lx, int rx) {
^
game.cpp:19:6: note: 'void buildX(int, int, int)' previously defined here
void buildX(int ndx, int lx, int rx) {
^
game.cpp:75:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = lx + rx >> 1;
^
game.cpp: In function 'void updateY(int, int, int, int, int, int, int, int)':
game.cpp:80:6: error: redefinition of 'void updateY(int, int, int, int, int, int, int, int)'
void updateY(int ndx, int lx, int rx, int ndy, int ly, int ry, int y, int val) {
^
game.cpp:26:6: note: 'void updateY(int, int, int, int, int, int, int, int)' previously defined here
void updateY(int ndx, int lx, int rx, int ndy, int ly, int ry, int y, int val) {
^
game.cpp:85:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
} int mid = ly + ry >> 1;
^
game.cpp: In function 'void updateX(int, int, int, int, int, int)':
game.cpp:90:6: error: redefinition of 'void updateX(int, int, int, int, int, int)'
void updateX(int ndx, int lx, int rx, int x, int y, int val) {
^
game.cpp:36:6: note: 'void updateX(int, int, int, int, int, int)' previously defined here
void updateX(int ndx, int lx, int rx, int x, int y, int val) {
^
game.cpp:92:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = lx + rx >> 1;
^
game.cpp: In function 'int queryY(int, int, int, int, int, int)':
game.cpp:98:5: error: redefinition of 'int queryY(int, int, int, int, int, int)'
int queryY(int ndx, int ndy, int ly, int ry, int y1, int y2) {
^
game.cpp:44:5: note: 'int queryY(int, int, int, int, int, int)' previously defined here
int queryY(int ndx, int ndy, int ly, int ry, int y1, int y2) {
^
game.cpp:102:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = ly + ry >> 1;
^
game.cpp: In function 'int queryX(int, int, int, int, int, int, int)':
game.cpp:106:5: error: redefinition of 'int queryX(int, int, int, int, int, int, int)'
int queryX(int ndx, int lx, int rx, int x1, int y1, int x2, int y2) {
^
game.cpp:52:5: note: 'int queryX(int, int, int, int, int, int, int)' previously defined here
int queryX(int ndx, int lx, int rx, int x1, int y1, int x2, int y2) {
^
game.cpp:110:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
} int mid = lx + rx >> 1;
^