In file included from /in/Compile/check.cpp:7:
In file included from /in/sokoban.hpp:9:
/in/Distance.hpp:22:76: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
setHash ^= std::hash<uint16_t>{}(elem) + 0x9e3779b9 + (setHash << 6) + (setHash >> 2);
~ ~~~~~~~~^~~~
/in/Distance.hpp:23:34: error: implicit conversion loses integer precision: 'std::size_t' (aka 'unsigned long') to 'std::uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
std::uint16_t sizeHash = std::hash<uint16_t>{}(key.second);
~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/Distance.hpp:24:24: error: implicit conversion loses integer precision: 'unsigned int' to 'std::uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
return setHash ^ (sizeHash + 0x9e3779b9 + (setHash << 6) + (setHash >> 2));
~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/Distance.hpp:24:60: error: implicit conversion changes signedness: 'int' to 'unsigned int' [-Werror,-Wsign-conversion]
return setHash ^ (sizeHash + 0x9e3779b9 + (setHash << 6) + (setHash >> 2));
~ ~~~~~~~~^~~~
/in/Distance.hpp:136:9: error: unused variable 'y1' [-Werror,-Wunused-variable]
int y1 = static_cast<int>(p1) % col;
^
In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:278:56: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
uint16_t newPlayerPos = currentNode.player + dir[_];
~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/sokoban.hpp:321:51: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
uint16_t newBoxPos = newPlayerPos + dir[_];
~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~
7 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1