Record Detail

Compile Error

/in/player.cpp:51:1: error: expected ';' after class definition
 }
 ^
/in/player.cpp: In member function 'virtual bool Simple::draw(Card, const Hand&)':
/in/player.cpp:23:14: error: no match for 'operator<=' (operand types are 'const Hand' and 'int')
   if (player <= 11) {
       ~~~~~~~^~~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:460:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator<=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^~~~~~~~
/usr/include/c++/6/bits/stl_pair.h:460:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::pair<_T1, _T2>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h:316:5: note: candidate: template<class _Iterator> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator<=(const reverse_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:316:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::reverse_iterator<_Iterator>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h:373:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator<=(const reverse_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:373:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::reverse_iterator<_Iterator>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h:1149:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
     operator<=(const move_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:1149:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::move_iterator<_IteratorL>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h:1155:5: note: candidate: template<class _Iterator> bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
     operator<=(const move_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:1155:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::move_iterator<_IteratorL>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/basic_string.h:5226:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5226:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/basic_string.h:5239:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5239:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/string:52:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/player.cpp:1:
/usr/include/c++/6/bits/basic_string.h:5251:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<=(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5251:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   mismatched types 'const _CharT*' and 'Hand'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/tuple:39:0,
                 from /usr/include/c++/6/bits/unique_ptr.h:37,
                 from /usr/include/c++/6/bits/locale_conv.h:41,
                 from /usr/include/c++/6/locale:43,
                 from /usr/include/c++/6/iomanip:43,
                 from /in/player.cpp:4:
/usr/include/c++/6/array:264:5: note: candidate: template<class _Tp, long unsigned int _Nm> bool std::operator<=(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)
     operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
     ^~~~~~~~
/usr/include/c++/6/array:264:5: note:   template argument deduction/substitution failed:
/in/player.cpp:23:17: note:   'const Hand' is not derived from 'const std::array<_Tp, _Nm>'
   if (player <= 11) {
                 ^~
In file included from /usr/include/c++/6/bits/unique_ptr.h:37:0,
                 

Information

Submit By
Type
Submission
Homework
Project Four: Blackjack
Language
C++
Submit At
2018-07-23 23:57:16
Judged At
2018-07-23 23:57:16
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes