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
|
TreeCalc.cpp: In destructor ‘TreeCalc::~TreeCalc()’:
TreeCalc.cpp:19:20: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp: In member function ‘void TreeCalc::cleanTree(TreeNode*)’:
TreeCalc.cpp:25:18: error: no match for ‘operator!=’ in ‘ptr->TreeNode::value != 0’
TreeCalc.cpp:25:18: note: candidates are:
/usr/include/c++/4.6/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
/usr/include/c++/4.6/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
/usr/include/c++/4.6/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
/usr/include/c++/4.6/bits/allocator.h:132:5: note: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_T1>&, const std::allocator<_T2>&)
/usr/include/c++/4.6/bits/allocator.h:137:5: note: template<class _Tp> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
/usr/include/c++/4.6/bits/stl_deque.h:259:5: note: template<class _Tp, class _Ref, class _Ptr> bool std::operator!=(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
/usr/include/c++/4.6/bits/stl_deque.h:266:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> bool std::operator!=(const std::_Deque_iterator<_Tp, _RefL, _PtrL>&, const std::_Deque_iterator<_Tp, _RefR, _PtrR>&)
/usr/include/c++/4.6/bits/stl_deque.h:1943:5: note: template<class _Tp, class _Alloc> bool std::operator!=(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&)
/usr/include/c++/4.6/bits/stl_stack.h:265:5: note: template<class _Tp, class _Seq> bool std::operator!=(const std::stack<_Tp, _Seq>&, const std::stack<_Tp, _Seq>&)
/usr/include/c++/4.6/bits/postypes.h:223:5: note: template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
/usr/include/c++/4.6/bits/basic_string.h:2473:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/basic_string.h:2485:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/basic_string.h:2497:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
/usr/include/c++/4.6/bits/streambuf_iterator.h:200:5: note: template<class _CharT, class _Traits> bool std::operator!=(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)
/usr/include/c++/4.6/ext/new_allocator.h:128:5: note: template<class _Tp> bool __gnu_cxx::operator!=(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&)
/usr/include/c++/4.6/bits/stl_iterator.h:817:5: note: template<class _Iterator, class _Container> bool __gnu_cxx::operator!=(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
/usr/include/c++/4.6/bits/stl_iterator.h:811:5: note: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator!=(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
TreeCalc.cpp: In member function ‘void TreeCalc::insert(const string&)’:
TreeCalc.cpp:56:17: error: no matching function for call to ‘isdigit(const string&)’
TreeCalc.cpp:56:17: note: candidates are:
/usr/include/ctype.h:115:1: note: int isdigit(int)
/usr/include/ctype.h:115:1: note: no known conversion for argument 1 from ‘const string {aka const std::basic_string<char>}’ to ‘int’
/usr/include/c++/4.6/bits/locale_facets.h:2566:5: note: template<class _CharT> bool std::isdigit(_CharT, const std::locale&)
TreeCalc.cpp:57:32: error: conversion from ‘TreeNode*’ to non-scalar type ‘TreeNode’ requested
TreeCalc.cpp:58:12: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp:61:32: error: conversion from ‘TreeNode*’ to non-scalar type ‘TreeNode’ requested
TreeCalc.cpp:62:6: error: base operand of ‘->’ has non-pointer type ‘TreeNode’
TreeCalc.cpp:62:21: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp:63:12: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp:64:6: error: base operand of ‘->’ has non-pointer type ‘TreeNode’
TreeCalc.cpp:64:20: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp:65:12: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp:66:12: error: base operand of ‘->’ has non-pointer type ‘std::stack<TreeNode*>’
TreeCalc.cpp: In member function ‘void TreeCalc::printPrefix(TreeNode*) const’:
TreeCalc.cpp:82:1: error: a function-definition is not allowed here before ‘{’ token
TreeCalc.cpp:177:1: error: expected ‘}’ at end of input
|