1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
Compiler: Default compiler
Building Makefile: "C:\Users\Shane\Documents\Data Structures\Dev-C++\Prac3\Makefile.win"
Executing make...
make.exe -f "C:\Users\Shane\Documents\Data Structures\Dev-C++\Prac3\Makefile.win" all
g++.exe -c TestBSTree.cpp -o TestBSTree.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
BSTree1.h: In constructor `BSTree<KT, DT>::BSTree() [with KT = int, DT = TestData]':
TestBSTree.cpp:48: instantiated from here
BSTree1.h:47: error: new initializer expression list treated as compound expression
BSTree1.h:47: error: invalid conversion from `int' to `BSTree<int, TestData>::BSTreeNode*'
BSTree1.h:47: error: cannot convert `BSTree<int, TestData>::BSTreeNode**' to `BSTree<int, TestData>::BSTreeNode*' in assignment
BSTree1.h: In member function `void BSTree<KT, DT>::deleteSubtree(BSTree<KT, DT>::BSTreeNode*) const [with KT = int, DT = TestData]':
BSTree1.h:59: instantiated from `BSTree<KT, DT>::~BSTree() [with KT = int, DT = TestData]'
TestBSTree.cpp:48: instantiated from here
BSTree1.h:22: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::rightPtr' is private
BSTree1.h:172: error: within this context
BSTree1.h:21: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::leftPtr' is private
BSTree1.h:174: error: within this context
BSTree1.h:21: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::leftPtr' is private
BSTree1.h:179: error: within this context
BSTree1.h: In member function `void BSTree<KT, DT>::showSubtree(BSTree<KT, DT>::BSTreeNode*, int) const [with KT = int, DT = TestData]':
BSTree1.h:132: instantiated from `void BSTree<KT, DT>::showStructure() const [with KT = int, DT = TestData]'
TestBSTree.cpp:54: instantiated from here
BSTree1.h:22: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::rightPtr' is private
BSTree1.h:150: error: within this context
BSTree1.h:132: instantiated from `void BSTree<KT, DT>::showStructure() const [with KT = int, DT = TestData]'
TestBSTree.cpp:54: instantiated from here
BSTree1.h:22: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::rightPtr' is private
BSTree1.h:156: error: within this context
BSTree1.h:21: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::leftPtr' is private
BSTree1.h:156: error: within this context
BSTree1.h:22: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::rightPtr' is private
BSTree1.h:158: error: within this context
BSTree1.h:21: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::leftPtr' is private
BSTree1.h:160: error: within this context
BSTree1.h:21: error: `BSTree<int, TestData>::BSTreeNode*BSTree<int, TestData>::BSTreeNode::leftPtr' is private
BSTree1.h:165: error: within this context
BSTree1.h: In member function `KT& BSTree<KT, DT>::BSTreeNode::key() [with KT = int, DT = TestData]':
BSTree1.h:155: instantiated from `void BSTree<KT, DT>::showSubtree(BSTree<KT, DT>::BSTreeNode*, int) const [with KT = int, DT = TestData]'
BSTree1.h:132: instantiated from `void BSTree<KT, DT>::showStructure() const [with KT = int, DT = TestData]'
TestBSTree.cpp:54: instantiated from here
BSTree1.h:29: error: invalid type argument of `unary *'
make.exe: *** [TestBSTree.o] Error 1
Execution terminated
|