Record Detail

Compile Error

/in/blackjack.cpp: In function 'int main(int, char**)':
/in/blackjack.cpp:170:52: error: cannot convert 'Player*' to 'Player**' in initialization
  Player **DT = get_Player(dealerTeam, playerType, k);
                                                    ^
/in/blackjack.cpp:178:16: error: 'get_player' was not declared in this scope
  Player **PT = get_player(playerTeam, playerType, k);
                ^~~~~~~~~~
/in/blackjack.cpp:178:16: note: suggested alternative: 'get_Player'
  Player **PT = get_player(playerTeam, playerType, k);
                ^~~~~~~~~~
                get_Player
/in/player.cpp: In function 'Player* get_Player(std::__cxx11::string, std::__cxx11::string&, int&)':
/in/player.cpp:156:10: error: 'player' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  Player *player;
          ^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 3: Blackjack
Language
C++
Submit At
2021-07-12 16:04:40
Judged At
2021-07-24 20:52:11
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes