prog.c:12:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
preorder(node)
^~~~~~~~
prog.c: In function ‘preorder’:
prog.c:12:1: warning: type of ‘node’ defaults to ‘int’ [-Wimplicit-int]
prog.c:14:10: warning: comparison between pointer and integer
if(node == NULL){
^~
prog.c:15:3: warning: ‘return’ with no value, in function returning non-void
return;
^~~~~~
prog.c:12:1: note: declared here
preorder(node)
^~~~~~~~
prog.c:17:11: error: ‘p’ undeclared (first use in this function)
preorder(p->left);
^
prog.c:17:11: note: each undeclared identifier is reported only once for each function it appears in