In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:26:44: error: implicit conversion changes signedness: 'char' to 'unsigned long' [-Werror,-Wsign-conversion]
hash = hash * 31 + c;
~ ^
/in/sokoban.hpp:45:21: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(rows);
~~~~~~ ^~~~
/in/sokoban.hpp:47:41: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
std::getline(std::cin, grid[i]);
~~~~ ^
/in/sokoban.hpp:50:22: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[i].length() != cols) {
~~~~ ^
/in/sokoban.hpp:50:34: error: comparison of integers of different signs: 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
if (grid[i].length() != cols) {
~~~~~~~~~~~~~~~~ ^ ~~~~
/in/sokoban.hpp:113:45: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
next_state.grid[ny][nx] = '.';
~~~~~~~~~~ ^~
/in/sokoban.hpp:113:49: 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]
next_state.grid[ny][nx] = '.';
~~~~~~~~~~ ^~
/in/sokoban.hpp:114:45: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
next_state.grid[box_ny][box_nx] = 'B';
~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:114:53: 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]
next_state.grid[box_ny][box_nx] = 'B';
~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:124:59: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
next_state.grid[next_state.player_pos.first][next_state.player_pos.second] = '.';
~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~
/in/sokoban.hpp:124:88: 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]
next_state.grid[next_state.player_pos.first][next_state.player_pos.second] = '.';
~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/in/sokoban.hpp:125:37: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
next_state.grid[ny][nx] = 'S';
~~~~~~~~~~ ^~
/in/sokoban.hpp:125:41: 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]
next_state.grid[ny][nx] = 'S';
~~~~~~~~~~ ^~
/in/sokoban.hpp:218:35: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
x >= 0 && x < grid[y].size() &&
~~~~ ^
/in/sokoban.hpp:219:21: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[y][x] != '#';
~~~~ ^
/in/sokoban.hpp:219:24: 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]
grid[y][x] != '#';
~~~~ ^
/in/sokoban.hpp:217:28: error: comparison of integers of different signs: 'int' and 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
return y >= 0 && y < grid.size() &&
~ ^ ~~~~~~~~~~~
/in/sokoban.hpp:218:28: 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]
x >= 0 && x < grid[y].size() &&
~ ^ ~~~~~~~~~~~~~~
18 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1