In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:54:38: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
int nx = i + dir.first;
~ ~~~~^~~~~
/in/sokoban.hpp:55:38: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
int ny = j + dir.second;
~ ~~~~^~~~~~
/in/sokoban.hpp:56:41: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_valid(grid, nx, ny))
~~~~~~~~ ^~
/in/sokoban.hpp:56:45: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_valid(grid, nx, ny))
~~~~~~~~ ^~
/in/sokoban.hpp:78:38: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
int nx = i + dir.first;
~ ~~~~^~~~~
/in/sokoban.hpp:79:38: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
int ny = j + dir.second;
~ ~~~~^~~~~~
/in/sokoban.hpp:80:41: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_valid(grid, nx, ny))
~~~~~~~~ ^~
/in/sokoban.hpp:80:45: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!is_valid(grid, nx, ny))
~~~~~~~~ ^~
/in/sokoban.hpp:54:32: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
int nx = i + dir.first;
~~ ~~^~~~~~~~~~~
/in/sokoban.hpp:55:32: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
int ny = j + dir.second;
~~ ~~^~~~~~~~~~~~
/in/sokoban.hpp:78:32: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
int nx = i + dir.first;
~~ ~~^~~~~~~~~~~
/in/sokoban.hpp:79:32: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
int ny = j + dir.second;
~~ ~~^~~~~~~~~~~~
/in/sokoban.hpp:156:31: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t nx = box.first + dir.first;
~~ ~~~~~~~~~~^~~~~~~~~~~
/in/sokoban.hpp:157:32: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t ny = box.second + dir.second;
~~ ~~~~~~~~~~~^~~~~~~~~~~~
/in/sokoban.hpp:162:35: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t rx = box.first - dir.first;
~~ ~~~~~~~~~~^~~~~~~~~~~
/in/sokoban.hpp:163:36: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t ry = box.second - dir.second;
~~ ~~~~~~~~~~~^~~~~~~~~~~~
/in/sokoban.hpp:183:24: error: use of undeclared identifier 'INT_MAX'
int min_dist = INT_MAX;
^
/in/sokoban.hpp:247:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int nx = current.player_x + DIRECTIONS[d].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:248:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int ny = current.player_y + DIRECTIONS[d].second;
~~~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1