Record Detail

Compile Error

/in/deck.cpp:2:18: error: return type specification for constructor invalid
 void Deck::Deck( )
                  ^
/in/player.cpp:6:9: error: 'CPlayer' does not name a type; did you mean 'SPlayer'?
  static CPlayer cPlayer;
         ^~~~~~~
         SPlayer
/in/player.cpp: In member function 'virtual int CPlayer::bet(unsigned int, unsigned int)':
/in/player.cpp:77:16: error: 'int SPlayer::count' is private within this context
         if ( ( count >= 2 ) && ( bankroll >= 2 * minimum ) )
                ^~~~~
/in/player.cpp:45:19: note: declared private here
     int count { 0 };
                   ^
/in/player.cpp: In member function 'virtual void CPlayer::expose(Card)':
/in/player.cpp:87:13: error: 'int SPlayer::count' is private within this context
             count--;
             ^~~~~
/in/player.cpp:45:19: note: declared private here
     int count { 0 };
                   ^
/in/player.cpp:91:13: error: 'int SPlayer::count' is private within this context
             count++;
             ^~~~~
/in/player.cpp:45:19: note: declared private here
     int count { 0 };
                   ^
/in/player.cpp: In member function 'virtual void CPlayer::shuffled()':
/in/player.cpp:97:9: error: 'int SPlayer::count' is private within this context
         count = 0;
         ^~~~~
/in/player.cpp:45:19: note: declared private here
     int count { 0 };
                   ^
/in/player.cpp: In function 'Player* get_Simple()':
/in/player.cpp:104:13: error: 'sPlayer' was not declared in this scope
     return &sPlayer;
             ^~~~~~~
/in/player.cpp:104:13: note: suggested alternative: 'CPlayer'
     return &sPlayer;
             ^~~~~~~
             CPlayer
/in/player.cpp: In function 'Player* get_Counting()':
/in/player.cpp:108:13: error: 'cPlayer' was not declared in this scope
     return &cPlayer;
             ^~~~~~~
/in/player.cpp:108:13: note: suggested alternative: 'CPlayer'
     return &cPlayer;
             ^~~~~~~
             CPlayer
/in/compile/Makefile:25: recipe for target 'blackjack' failed
make: *** [blackjack] Error 1

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2023-11-26 23:36:22
Judged At
2023-11-26 23:36:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes