In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:34:78: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return x >= 0 && x < grid.size() && y >= 0 && y < grid[0].size() && grid[x][y] != '#';
~~~~ ^
/in/sokoban.hpp:34:81: 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]
return x >= 0 && x < grid.size() && y >= 0 && y < grid[0].size() && grid[x][y] != '#';
~~~~ ^
/in/sokoban.hpp:34:24: error: comparison of integers of different signs: 'int' and 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
return x >= 0 && x < grid.size() && y >= 0 && y < grid[0].size() && grid[x][y] != '#';
~ ^ ~~~~~~~~~~~
/in/sokoban.hpp:34:53: error: comparison of integers of different signs: 'int' and 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
return x >= 0 && x < grid.size() && y >= 0 && y < grid[0].size() && grid[x][y] != '#';
~ ^ ~~~~~~~~~~~~~~
/in/sokoban.hpp:42:12: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return hash;
~~~~~~ ^~~~
/in/sokoban.hpp:54:22: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[i][j] == 'S') {
~~~~ ^
/in/sokoban.hpp:54:25: 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[i][j] == 'S') {
~~~~ ^
/in/sokoban.hpp:56:29: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (grid[i][j] == 'B') {
~~~~ ^
/in/sokoban.hpp:56:32: 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]
} else if (grid[i][j] == 'B') {
~~~~ ^
/in/sokoban.hpp:58:29: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (grid[i][j] == 'T') {
~~~~ ^
/in/sokoban.hpp:58:32: 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]
} else if (grid[i][j] == 'T') {
~~~~ ^
/in/sokoban.hpp:94:51: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int new_x = player.first + directions[d].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:95:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int new_y = player.second + directions[d].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:109:44: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t box_new_x = box.first + static_cast<size_t>(directions[d].first);
~~~~^~~~~ ~
/in/sokoban.hpp:109:83: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t box_new_x = box.first + static_cast<size_t>(directions[d].first);
~~~~~~~~~~ ^
/in/sokoban.hpp:110:44: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t box_new_y = box.second + static_cast<size_t>(directions[d].second);
~~~~^~~~~~ ~
/in/sokoban.hpp:110:84: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t box_new_y = box.second + static_cast<size_t>(directions[d].second);
~~~~~~~~~~ ^
/in/sokoban.hpp:126:57: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
string new_path = path + directionChars[d];
~~~~~~~~~~~~~~ ^
/in/sokoban.hpp:133:57: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
string new_path = path + directionChars[d];
~~~~~~~~~~~~~~ ^
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