In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:134:85: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_within_bounds(new_px, new_py, rows, cols) || !is_walkable(grid, new_px, new_py)) {
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:134:93: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_within_bounds(new_px, new_py, rows, cols) || !is_walkable(grid, new_px, new_py)) {
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:146:89: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_within_bounds(new_bx, new_by, rows, cols) || !is_walkable(grid, new_bx, new_by)) {
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:146:97: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_within_bounds(new_bx, new_by, rows, cols) || !is_walkable(grid, new_bx, new_by)) {
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:84:21: error: implicit conversion loses integer precision: 'std::vector::size_type' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
int rows = grid.size();
~~~~ ~~~~~^~~~~~
/in/sokoban.hpp:85:24: error: implicit conversion loses integer precision: 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
int cols = grid[0].size();
~~~~ ~~~~~~~~^~~~~~
/in/sokoban.hpp:91:26: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
for (size_t y = 0; y < rows; ++y) {
~ ^ ~~~~
/in/sokoban.hpp:92:30: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
for (size_t x = 0; x < cols; ++x) {
~ ^ ~~~~
/in/sokoban.hpp:94:28: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
player_x = x;
~ ^
/in/sokoban.hpp:95:28: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
player_y = y;
~ ^
10 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1