0_0_21214008_9860.cpp:21:23: error: 'node' has not been declared
inline void _inc (node * x, int inc) {
^
0_0_21214008_9860.cpp:25:24: error: 'node' has not been declared
inline void clear (node *const x) {
^
0_0_21214008_9860.cpp:39:25: error: 'node' has not been declared
inline void update (node * x) {
^
0_0_21214008_9860.cpp:44:18: error: 'node' has not been declared
void Rotate (node *x) {
^
0_0_21214008_9860.cpp:57:17: error: 'node' has not been declared
void Splay (node *x) {
^
0_0_21214008_9860.cpp:72:5: error: 'node' does not name a type
node *Access (node *u) {
^
0_0_21214008_9860.cpp:81:5: error: 'node' does not name a type
node *getroot (node *x) {
^
0_0_21214008_9860.cpp:85:24: error: 'node' has not been declared
inline void evert (node *x) {
^
0_0_21214008_9860.cpp:89:23: error: 'node' has not been declared
inline void link (node *x, node *y) {
^
0_0_21214008_9860.cpp:89:32: error: 'node' has not been declared
inline void link (node *x, node *y) {
^
0_0_21214008_9860.cpp:94:22: error: 'node' has not been declared
inline void cut (node *x, node *y) {
^
0_0_21214008_9860.cpp:94:31: error: 'node' has not been declared
inline void cut (node *x, node *y) {
^
0_0_21214008_9860.cpp:102:23: error: 'node' has not been declared
inline int query (node *x, node *y) {
^
0_0_21214008_9860.cpp:102:32: error: 'node' has not been declared
inline int query (node *x, node *y) {
^
0_0_21214008_9860.cpp:107:25: error: 'node' has not been declared
inline void modify (node *x, node *y, int w) {
^
0_0_21214008_9860.cpp:107:34: error: 'node' has not been declared
inline void modify (node *x, node *y, int w) {
^
0_0_21214008_9860.cpp: In member function 'void LinkcutTree::_inc(int*, int)':
0_0_21214008_9860.cpp:22:18: error: 'NIL' was not declared in this scope
if (x == NIL) return;
^
0_0_21214008_9860.cpp:23:12: error: request for member 'inc' in '* x', which is of non-class type 'int'
x->inc += inc, x->val += inc, x->max += inc;
^
0_0_21214008_9860.cpp:23:27: error: request for member 'val' in '* x', which is of non-class type 'int'
x->inc += inc, x->val += inc, x->max += inc;
^
0_0_21214008_9860.cpp:23:42: error: request for member 'max' in '* x', which is of non-class type 'int'
x->inc += inc, x->val += inc, x->max += inc;
^
0_0_21214008_9860.cpp: In member function 'void LinkcutTree::clear(int*)':
0_0_21214008_9860.cpp:26:18: error: 'NIL' was not declared in this scope
if (x == NIL) return ;
^
0_0_21214008_9860.cpp:27:16: error: request for member 'inc' in '*(int*)x', which is of non-class type 'int'
if (x->inc) {
^
0_0_21214008_9860.cpp:28:22: error: request for member 'Ch' in '*(int*)x', which is of non-class type 'int'
_inc (x->Ch[0], x->inc);
^
0_0_21214008_9860.cpp:28:32: error: request for member 'inc' in '*(int*)x', which is of non-class type 'int'
_inc (x->Ch[0], x->inc);
^
0_0_21214008_9860.cpp:29:22: error: request for member 'Ch' in '*(int*)x', which is of non-class type 'int'
_inc (x->Ch[1], x->inc);
^
0_0_21214008_9860.cpp:29:32: error: request for member 'inc' in '*(int*)x', which is of non-class type 'int'
_inc (x->Ch[1], x->inc);
^
0_0_21214008_9860.cpp:30:16: error: request for member 'inc' in '*(int*)x', which is of non-class type 'int'
x->inc = 0;
^
0_0_21214008_9860.cpp:32:16: error: request for member 'rev' in '*(int*)x', which is of non-class type 'int'
if (x->rev) {
^
0_0_21214008_9860.cpp:33:22: error: request for member 'Ch' in '*(int*)x', which is of non-class type 'int'
swap (x->Ch[0], x->Ch[1]);
^
0_0_21214008_9860.cpp:33:32: error: request for member 'Ch' in '*(int*)x', which is of non-class type 'int'
swap (x->Ch[0], x->Ch[1]);
^
0_0_21214008_9860.cpp:34:16: error: request for member 'Ch' in '*(int*)x', which is of non-class type 'int'
x->Ch[0]->rev ^= 1;
^
0_0_21214008_9860.cpp:35:16: error: request for member 'Ch' in '*(int*)x', which is of non-class type 'int'
x->Ch[1]->rev ^= 1;
^
0_0_21214008_9860.cpp:36:16: error: request for member 'rev' in '*(int*)x', which is of non-class type 'int'
x->rev = 0;
^
0_0_21214008_9860.cpp: In member function 'void LinkcutTree::update(int*)':
0_0_21214008_9860.cpp:41:19: error: request for member 'Ch' in '* x', which is of non-class type 'int'
clear (x->Ch[0]), clear (x->Ch[1]);
^
0_0_21214008_9860.cpp:41:37: error: request for member 'Ch' in '* x', which is of non-class type 'int'
clear (x->Ch[0]), clear (x->Ch[1]);
^
0_0_21214008_9860.cpp:42:12: error: request for member 'max' in '* x', which is of non-class type 'int'
x->max = max (x->val, max (x->Ch[0]->max, x->Ch[1]->max) );
^
0_0_21214008_9860.cpp:42:26: error: request for member 'val' in '* x', which is of non-class type 'int'
x->max = max (x->val, max (x->Ch[0]->max, x->Ch[1]->max) );
^
0_0_21214008_9860.cpp:42:39: error: request for member 'Ch' in '* x', which is of non-class type 'int'
x->max = max (x->val, max (x->Ch[0]->max, x->Ch[1]->max) );
^
0_0_21214008_9860.cpp:42:54: error: request for member 'Ch' in '* x', which is of non-class type 'int'
x->max = max (x->val, max (x->Ch[0]->max, x->Ch[1]->max) );
^
0_0_21214008_9860.cpp: In member function 'void LinkcutTree::Rotate(int*)':
0_0_21214008_9860.cpp:45:9: error: 'node' was not declared in this scope
node *p = x->par, *g = p->par;
^
0_0_21214008_9860.cpp:45:15: error: 'p' was not declared in this scope
node *p = x->par, *g = p->par;
^
0_0_21214008_9860.cpp:45:22: error: request for member 'par' in '* x', which is of non-class type 'int'
node *p = x->par, *g = p->par;
^
0_0_21214008_9860.cpp:45:28: error: 'g' was not declared in this scope
node *p = x->par, *g = p->par;
^
0_0_21214008_9860.cpp:48:27: error: request for member 'Ch' in '* x', which is of non-class type 'int'
p->Ch[c ^ 1] = x->Ch[c];
^
0_0_21214008_9860.cpp:49:16: error: request for member 'Ch' in '* x', which is of non-class type 'int'
if (x->Ch[c] != NIL) x->Ch[c]->par = p;
^
0_0_21214008_9860.cpp:49:25: error: 'NIL' was not declared in this scope
if (x->Ch[c] != NIL) x->Ch[c]->par = p;
^
0_0_21214008_9860.cpp:49:33: error: request for member 'Ch' in '* x', which is of non-class type 'int'
if (x->Ch[c] != NIL) x->Ch[c]->par = p;
^
0_0_21214008_9860.cpp:50:12: error: request for member 'par' in '* x', which is of non-class type 'int'
x->par = g;
^
0_0_21214008_9860.cpp:53:12: error: request for member 'Ch' in '* x', which is of non-class type 'int'
x->Ch[c] = p;
^
0_0_21214008_9860.cpp: In member function 'void LinkcutTree::Splay(int*)':
0_0_21214008_9860.cpp:58:15: error: 'NIL' was not declared in this scope
if(x==NIL) return ;
^
0_0_21214008_9860.cpp:59:19: error: request for member 'par' in '* x', which is of non-class type 'int'
while (x->par != NIL && (x->par->Ch[0] == x || x->par->Ch[1] == x) ) {
^
0_0_21214008_9860.cpp:59:26: error: 'NIL' was not declared in this scope
while (x->par != NIL && (x->par->Ch[0] == x || x->par->Ch[1] == x) ) {
^
0_0_21214008_9860.cpp:59:37: error: request for member 'par' in '* x', which is of non-class type 'int'
while (x->par != NIL && (x->par->Ch[0] == x || x->par->Ch[1] == x) ) {
^
0_0_21214008_9860.cpp:59:59: error: request for member 'par' in '* x', which is of non-class type 'int'
while (x->par != NIL && (x->par->Ch[0] == x || x->par->Ch[1] == x) ) {
^
0_0_21214008_9860.cpp:60:20: error: request for member 'par' in '* x', which is of non-class type 'int'
if (x->par != NIL)
^
0_0_21214008_9860.cpp:63:17: error: 'node' was not declared in this scope
node *p = x->par, *g = p->par;
^
0_0_21214008_9860.cpp:63:23: error: 'p' was not declared in this scope
node *p = x->par, *g = p->par;
^
0_0_21214008_9860.cpp:63:30: error: request for member 'par' in '* x', which is of non-class type 'int'
node *p = x->par, *g = p->par;
^
0_0_21214008
|