In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:165:47: error: taking the absolute value of unsigned type 'unsigned long' has no effect [-Werror,-Wabsolute-value]
size_t dist = static_cast<size_t>(abs(box.first - goal.first) + abs(box.second - goal.second));
^
/in/sokoban.hpp:165:47: note: remove the call to 'abs' since unsigned values cannot be negative
size_t dist = static_cast<size_t>(abs(box.first - goal.first) + abs(box.second - goal.second));
^~~
/in/sokoban.hpp:165:77: error: taking the absolute value of unsigned type 'unsigned long' has no effect [-Werror,-Wabsolute-value]
size_t dist = static_cast<size_t>(abs(box.first - goal.first) + abs(box.second - goal.second));
^
/in/sokoban.hpp:165:77: note: remove the call to 'abs' since unsigned values cannot be negative
size_t dist = static_cast<size_t>(abs(box.first - goal.first) + abs(box.second - goal.second));
^~~
/in/sokoban.hpp:165:61: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
size_t dist = static_cast<size_t>(abs(box.first - goal.first) + abs(box.second - goal.second));
~~~ ~~~~~~~~~~^~~~~~~~~~~~
/in/sokoban.hpp:165:92: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
size_t dist = static_cast<size_t>(abs(box.first - goal.first) + abs(box.second - goal.second));
~~~ ~~~~~~~~~~~^~~~~~~~~~~~~
4 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1