In file included from /Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/dblstk.cpp:9:
/Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/../include/dblstk.h:10:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
^
/Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/dblstk.cpp:26:13: error: reference to non-static member function must be called; did you mean to call it with no arguments?
push(rhs.getData[i]);
~~~~^~~~~~~
()
/Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/dblstk.cpp:47:10: error: invalid operands to binary expression ('DoubleStack *' and 'DoubleStack')
if(this == rhs)
~~~~ ^ ~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/utility:408:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack *'
operator==(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:584:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'DoubleStack *'
operator==(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:885:6: note: candidate template ignored: could not match 'istreambuf_iterator<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack *'
bool operator==(const istreambuf_iterator<_CharT,_Traits>& __a,
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:988:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'DoubleStack *'
operator==(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:1304:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'DoubleStack *'
operator==(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:1823:6: note: candidate template ignored: could not match 'allocator<type-parameter-0-0>' against 'DoubleStack *'
bool operator==(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT {return true;}
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2907:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack *'
operator==(const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) {return __x.get() == __y.get();}
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2943:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack *'
operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2951:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack'
operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4758:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'DoubleStack *'
operator==(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4807:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'DoubleStack *'
operator==(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4815:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'DoubleStack'
operator==(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/deque:2825:1: note: candidate template ignored: could not match 'deque<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack *'
operator==(const deque<_Tp, _Allocator>& __x, const deque<_Tp, _Allocator>& __y)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stack:230:1: note: candidate template ignored: could not match 'stack<type-parameter-0-0, type-parameter-0-1>' against 'DoubleStack *'
operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
^
/Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/dblstk.cpp:51:10: error: non-const lvalue reference to type 'DoubleStack' cannot bind to a temporary of type 'DoubleStack'
return DoubleStack(rhs);
^~~~~~~~~~~~~~~~
/Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/dblstk.cpp:90:15: error: type 'stack<double>' does not provide a subscript operator
if (mystack[i] == rhs[i]) {
~~~~~~~^~
/Users/renathomas/Documents/online_courses/C++Programming/Assignments/Assignment4/src/dblstk.cpp:90:25: error: type 'DoubleStack' does not provide a subscript operator
if (mystack[i] == rhs[i]) {
~~~^~
1 warning and 5 errors generated.
[Finished in 0.2s with exit code 1] |