Compile Error

prepare (1/4): 
finished

cmake (2/4): 
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found GTest: /usr/local/lib/libgtest.a  
-- Configuring done
-- Generating done
-- Build files have been written to: /out/build
finished

make (3/4): 
Scanning dependencies of target game
[  4%] Building CXX object CMakeFiles/game.dir/solution/piece.cpp.o
[  8%] Building CXX object CMakeFiles/game.dir/solution/player.cpp.o
/out/build/solution/player.cpp: In member function 'virtual Piece& HumanPlayer::selectPiece()':
/out/build/solution/player.cpp:37:9: warning: reference to local variable 'p' returned [-Wreturn-local-addr]
   Piece p(SHORT, BEIGE, CIRCLE, HOLLOW);
         ^
/out/build/solution/player.cpp: In member function 'virtual Square& HumanPlayer::selectSquare(const Piece&)':
/out/build/solution/player.cpp:67:10: warning: reference to local variable 'p' returned [-Wreturn-local-addr]
   Square p(A,H1);
          ^
/out/build/solution/player.cpp: At global scope:
/out/build/solution/player.cpp:95:20: error: use of deleted function 'HumanPlayer::HumanPlayer()'
 static HumanPlayer impl;
                    ^~~~
/out/build/solution/player.cpp:20:7: note: 'HumanPlayer::HumanPlayer()' is implicitly deleted because the default definition would be ill-formed:
 class HumanPlayer: public Player
       ^~~~~~~~~~~
/out/build/solution/player.cpp:20:7: error: no matching function for call to 'Player::Player()'
In file included from /out/build/solution/player.cpp:11:0:
/out/build/compile/player.h:18:5: note: candidate: Player::Player(Board*, Pool*)
     Player(Board *board, Pool *pool) : board(board), pool(pool) {}
     ^~~~~~
/out/build/compile/player.h:18:5: note:   candidate expects 2 arguments, 0 provided
/out/build/compile/player.h:7:7: note: candidate: constexpr Player::Player(const Player&)
 class Player {
       ^~~~~~
/out/build/compile/player.h:7:7: note:   candidate expects 1 argument, 0 provided
/out/build/compile/player.h:7:7: note: candidate: constexpr Player::Player(Player&&)
/out/build/compile/player.h:7:7: note:   candidate expects 1 argument, 0 provided
CMakeFiles/game.dir/build.make:86: recipe for target 'CMakeFiles/game.dir/solution/player.cpp.o' failed
make[2]: *** [CMakeFiles/game.dir/solution/player.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/game.dir/all' failed
make[1]: *** [CMakeFiles/game.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build failed

Information

Submit By
Type
Submission
Homework
Project Four: Quarto
Language
C++
Submit At
2019-07-14 20:46:33
Judged At
2019-08-10 22:09:36
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes