prog.cpp: In function ‘int height(node*)’:
prog.cpp:4: error: ‘NULL’ was not declared in this scope
prog.cpp:5: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘void memoize(node*)’:
prog.cpp:14: error: ‘NULL’ was not declared in this scope
prog.cpp:15: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:15: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:15: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* newnode(int)’:
prog.cpp:19: error: invalid application of ‘sizeof’ to incomplete type ‘node’
prog.cpp:19: error: ‘malloc’ was not declared in this scope
prog.cpp:20: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:21: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:21: error: ‘NULL’ was not declared in this scope
prog.cpp:22: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘void setleft(node*, node*)’:
prog.cpp:28: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘void setright(node*, node*)’:
prog.cpp:33: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* raise_right(node*)’:
prog.cpp:38: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:39: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* raise_left(node*)’:
prog.cpp:45: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:46: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* rebalance(node*)’:
prog.cpp:52: error: ‘NULL’ was not declared in this scope
prog.cpp:53: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:53: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:54: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:54: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:55: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:59: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:59: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:60: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:60: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:61: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* insertavl(node*, int)’:
prog.cpp:69: error: ‘NULL’ was not declared in this scope
prog.cpp:70: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:71: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:73: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* remove_rightmost(node*, int*)’:
prog.cpp:79: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:79: error: ‘NULL’ was not declared in this scope
prog.cpp:80: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:81: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:82: error: ‘free’ was not declared in this scope
prog.cpp:85: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp: In function ‘node* deleteavl(node*, int)’:
prog.cpp:90: error: ‘NULL’ was not declared in this scope
prog.cpp:91: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:92: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:93: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:94: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:95: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:95: error: ‘NULL’ was not declared in this scope
prog.cpp:97: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:98: error: ‘free’ was not declared in this scope
prog.cpp:99: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:101: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:102: error: ‘free’ was not declared in this scope
prog.cpp:104: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’
prog.cpp:104: error: invalid use of incomplete type ‘struct node’
prog.cpp:1: error: forward declaration of ‘struct node’