Compiler output
prog.cpp:23:25: warning: integer overflow in expression [-Woverflow]
prog.cpp:24:28: warning: integer overflow in expression [-Woverflow]
ver.cpp: In constructor ‘Board::Board()’:
ver.cpp:38:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ver.cpp: In member function ‘bool Board::finished()’:
ver.cpp:68:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ver.cpp: In member function ‘bool Game::setHuman()’:
ver.cpp:79:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ver.cpp: In member function ‘void Bot1::setShips()’:
ver.cpp:115:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ver.cpp: In member function ‘void Test::testBot1()’:
ver.cpp:177:9: warning: unused variable ‘b’ [-Wunused-variable]