In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:19:17: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(rows);
~~~~~~ ^~~~
/in/sokoban.hpp:23:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
std::cin >> grid[i];
~~~~ ^
/in/sokoban.hpp:49:22: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[r][c] == 'S') {
~~~~ ^
/in/sokoban.hpp:49: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[r][c] == 'S') {
~~~~ ^
/in/sokoban.hpp:52:29: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (grid[r][c] == 'B' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:52: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[r][c] == 'B' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:52:50: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (grid[r][c] == 'B' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:52: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]
} else if (grid[r][c] == 'B' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:54:29: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (grid[r][c] == 'T' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:54: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[r][c] == 'T' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:54:50: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (grid[r][c] == 'T' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:54: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]
} else if (grid[r][c] == 'T' || grid[r][c] == 'R') {
~~~~ ^
/in/sokoban.hpp:73:37: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
size_t hash = state.px * 31 + state.py;
~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~
/in/sokoban.hpp:75:42: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
hash = hash * 31 + box.first * cols + box.second;
~ ~~~~~~~~~~^~~~~~
/in/sokoban.hpp:75:55: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
hash = hash * 31 + box.first * cols + box.second;
~ ~~~~^~~~~~
/in/sokoban.hpp:107:45: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int new_px = current.px + dir_x[d];
~~~~~ ^
/in/sokoban.hpp:108:45: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int new_py = current.py + dir_y[d];
~~~~~ ^
/in/sokoban.hpp:111:22: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[new_px][new_py] == '#' ||
~~~~ ^~~~~~
/in/sokoban.hpp:111:30: 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[new_px][new_py] == '#' ||
~~~~ ^~~~~~
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