In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:152:65: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t newPlayerx = current.playerx + directions[i].first;
~ ~~~~~~~~~~~~~~^~~~~
/in/sokoban.hpp:152:62: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t newPlayerx = current.playerx + directions[i].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:153:65: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t newPlayery = current.playery + directions[i].second;
~ ~~~~~~~~~~~~~~^~~~~~
/in/sokoban.hpp:153:62: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t newPlayery = current.playery + directions[i].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:164:58: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int newBoxX = box.first + directions[i].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:165:59: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int newBoxY = box.second + directions[i].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:168:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[newBoxX][newBoxY] == '#' ||
~~~~ ^~~~~~~
/in/sokoban.hpp:168:39: error: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[newBoxX][newBoxY] == '#' ||
~~~~ ^~~~~~~
/in/sokoban.hpp:188:76: error: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
q.push({newPlayerx, newPlayery, newBoxes, current.path + moves[i]});
~~~~~ ^
/in/sokoban.hpp:163:31: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
if (box.first == newPlayerx && box.second == newPlayery) {
~~~~~~~~~ ^ ~~~~~~~~~~
/in/sokoban.hpp:163:59: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
if (box.first == newPlayerx && box.second == newPlayery) {
~~~~~~~~~~ ^ ~~~~~~~~~~
11 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1