prog.c: In function 'Delete':
prog.c:49:10: error: 'data' undeclared (first use in this function)
else if(data < root->data) root->left = Delete(root->left,data);
^
prog.c:49:10: note: each undeclared identifier is reported only once for each function it appears in
prog.c:55:4: error: unknown type name 'delete'
delete root;
^
prog.c:56:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
root = NULL;
^
prog.c:55:11: warning: variable 'root' set but not used [-Wunused-but-set-variable]
delete root;
^
prog.c:60:24: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
struct Node *temp = root;
^
prog.c:62:4: error: unknown type name 'delete'
delete temp;
^
prog.c:62:11: error: conflicting types for 'temp'
delete temp;
^
prog.c:60:17: note: previous definition of 'temp' was here
struct Node *temp = root;
^
prog.c:62:11: warning: unused variable 'temp' [-Wunused-variable]
delete temp;
^
prog.c:65:24: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
struct Node *temp = root;
^
prog.c:67:4: error: unknown type name 'delete'
delete temp;
^
prog.c:67:11: error: conflicting types for 'temp'
delete temp;
^
prog.c:65:17: note: previous definition of 'temp' was here
struct Node *temp = root;
^
prog.c:67:11: warning: unused variable 'temp' [-Wunused-variable]
delete temp;
^
prog.c:71:24: warning: implicit declaration of function 'FindMin' [-Wimplicit-function-declaration]
struct Node *temp = FindMin(root->right);
^
prog.c:71:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
prog.c:72:21: error: dereferencing pointer to incomplete type 'struct Node'
root->data = temp->data;
^
prog.c: At top level:
prog.c:79:2: error: expected identifier or '(' before 'else'
else
^
prog.c:94:1: error: expected identifier or '(' before '}' token
}
^
prog.c: In function 'findmin':
prog.c:109:10: warning: return makes integer from pointer without a cast [-Wint-conversion]
return root;
^
prog.c: In function 'main':
prog.c:131:7: warning: implicit declaration of function 'delete' [-Wimplicit-function-declaration]
root=delete(root,27);
^
prog.c:131:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
root=delete(root,27);
^
prog.c:117:14: warning: unused variable 'l' [-Wunused-variable]
int ln,tn,s,l;
^
prog.c:117:12: warning: unused variable 's' [-Wunused-variable]
int ln,tn,s,l;
^
prog.c:117:9: warning: unused variable 'tn' [-Wunused-variable]
int ln,tn,s,l;
^
prog.c:117:6: warning: unused variable 'ln' [-Wunused-variable]
int ln,tn,s,l;
^