fork download
  1. #include <stdbool.h>
  2.  
  3.  
  4. struct bst_node{
  5. int key;
  6. struct bst_node *left, *right;
  7. };
  8. typedef struct bst_node *BST;
  9.  
  10. BST BSTmake(int key, BST lt, BST rt);
  11. void BSTdestroy(BST t);
  12.  
  13. int BSTkey(BST t);
  14. BST BSTleft(BST t);
  15. BST BSTright(BST t);
  16. BST BSTempty();
  17. bool BSTisempty(BST t);
  18.  
  19.  
  20.  
  21. BST insertbst(int, BST); // for Problem 1e
  22.  
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty