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:13:15: error: 'NULL' was not declared in this scope
Ynode *lc=NULL, *rc=NULL;
^~~~
game.cpp:13:15: note: suggested alternative: 'LL'
Ynode *lc=NULL, *rc=NULL;
^~~~
LL
game.cpp:13:25: error: 'NULL' was not declared in this scope
Ynode *lc=NULL, *rc=NULL;
^~~~
game.cpp:13:25: note: suggested alternative: 'LL'
Ynode *lc=NULL, *rc=NULL;
^~~~
LL
game.cpp: In member function 'void Ynode::update(int, int, int, LL)':
game.cpp:22:19: error: 'NULL' was not declared in this scope
if (lc == NULL) lc = new Ynode;
^~~~
game.cpp:22:19: note: suggested alternative: 'LL'
if (lc == NULL) lc = new Ynode;
^~~~
LL
game.cpp:23:19: error: 'NULL' was not declared in this scope
if (rc == NULL) rc = new Ynode;
^~~~
game.cpp:23:19: note: suggested alternative: 'LL'
if (rc == NULL) rc = new Ynode;
^~~~
LL
game.cpp: In member function 'LL Ynode::query(int, int, int, int)':
game.cpp:33:19: error: 'NULL' was not declared in this scope
if (lc != NULL) return GCD(lc->query(s, mid, ts, te), rc->query(mid+1, e, ts, te));
^~~~
game.cpp:33:19: note: suggested alternative: 'LL'
if (lc != NULL) return GCD(lc->query(s, mid, ts, te), rc->query(mid+1, e, ts, te));
^~~~
LL
game.cpp: At global scope:
game.cpp:39:18: error: 'NULL' was not declared in this scope
Ynode *Ytree=NULL;
^~~~
game.cpp:39:18: note: suggested alternative: 'LL'
Ynode *Ytree=NULL;
^~~~
LL
game.cpp:40:15: error: 'NULL' was not declared in this scope
Xnode *lc=NULL, *rc=NULL;
^~~~
game.cpp:40:15: note: suggested alternative: 'LL'
Xnode *lc=NULL, *rc=NULL;
^~~~
LL
game.cpp:40:25: error: 'NULL' was not declared in this scope
Xnode *lc=NULL, *rc=NULL;
^~~~
game.cpp:40:25: note: suggested alternative: 'LL'
Xnode *lc=NULL, *rc=NULL;
^~~~
LL
game.cpp: In member function 'LL Xnode::update(int, int, int, int, LL)':
game.cpp:49:19: error: 'NULL' was not declared in this scope
if (lc == NULL){
^~~~
game.cpp:49:19: note: suggested alternative: 'LL'
if (lc == NULL){
^~~~
LL
game.cpp:53:19: error: 'NULL' was not declared in this scope
if (rc == NULL){
^~~~
game.cpp:53:19: note: suggested alternative: 'LL'
if (rc == NULL){
^~~~
LL
game.cpp: In member function 'LL Xnode::query(int, int, int, int, int, int)':
game.cpp:67:19: error: 'NULL' was not declared in this scope
if (lc != NULL) return GCD(lc->query(s, mid, xts, xte, yts, yte), rc->query(mid+1, e, xts, xte, yts, yte));
^~~~
game.cpp:67:19: note: suggested alternative: 'LL'
if (lc != NULL) return GCD(lc->query(s, mid, xts, xte, yts, yte), rc->query(mid+1, e, xts, xte, yts, yte));
^~~~
LL