prog.c: In function ‘right_rotate’:
prog.c:50:25: error: ‘T’ undeclared (first use in this function)
if ( x->p == NULL ) T->root = y;
^
prog.c:50:25: note: each undeclared identifier is reported only once for each function it appears in
prog.c: In function ‘rbinsert’:
prog.c:67:11: error: stray ‘\342’ in program
while (x ≠ NULL)
^
prog.c:67:12: error: stray ‘\211’ in program
while (x ≠ NULL)
^
prog.c:67:13: error: stray ‘\240’ in program
while (x ≠ NULL)
^
prog.c:67:9: error: called object ‘x’ is not a function or function pointer
while (x ≠ NULL)
^
prog.c:65:11: note: declared here
node *x = root;
^
prog.c:84:2: warning: implicit declaration of function ‘rb_fix’ [-Wimplicit-function-declaration]
rb_fix(z) ;
^~~~~~
prog.c: At top level:
prog.c:89:7: warning: conflicting types for ‘rb_fix’
void rb_fix(int val)
^~~~~~
prog.c:84:2: note: previous implicit declaration of ‘rb_fix’ was here
rb_fix(z) ;
^~~~~~
prog.c: In function ‘rb_fix’:
prog.c:92:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (z->p->color = 'R')
^~~~~
prog.c:96:9: error: ‘y’ undeclared (first use in this function)
y=z->p->p->right;
^
prog.c:115:9: error: expected ‘}’ before ‘else’
else
^~~~
prog.c: In function ‘prefixtour’:
prog.c:150:3: warning: implicit declaration of function ‘visit’ [-Wimplicit-function-declaration]
visit(p);
^~~~~
prog.c: At top level:
prog.c:154:6: warning: conflicting types for ‘visit’
void visit( node *x)
^~~~~
prog.c:150:3: note: previous implicit declaration of ‘visit’ was here
visit(p);
^~~~~
prog.c: In function ‘main’:
prog.c:177:6: warning: implicit declaration of function ‘rb_insert’ [-Wimplicit-function-declaration]
rb_insert(key);
^~~~~~~~~