In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:138:18: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
height = (int)grid_input.size();
~ ^~~~~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:139:17: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
width = (int)grid_input[0].size();
~ ^~~~~~~~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:209:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[ny][nx] == Cell::WALL) {
~~~~ ^~
/in/sokoban.hpp:209:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[ny][nx] == Cell::WALL) {
~~~~ ^~
/in/sokoban.hpp:272:34: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[by][bx] == Cell::WALL) continue;
~~~~ ^~
/in/sokoban.hpp:272:38: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[by][bx] == Cell::WALL) continue;
~~~~ ^~
/in/sokoban.hpp:308:28: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
return y >= 0 && y < height && x >= 0 && x < width;
~ ^ ~~~~~~
/in/sokoban.hpp:308:52: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
return y >= 0 && y < height && x >= 0 && x < width;
~ ^ ~~~~~
/in/sokoban.hpp:321:21: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return grid[y][x] == Cell::WALL;
~~~~ ^
/in/sokoban.hpp:321:24: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return grid[y][x] == Cell::WALL;
~~~~ ^
/in/sokoban.hpp:369:26: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
for (size_t i = 0; i < n; i++) {
~ ^ ~
/in/sokoban.hpp:370:30: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
for (size_t j = 0; j < m; j++) {
~ ^ ~
12 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1