In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:27:37: error: implicit conversion changes signedness: 'int' to 'unsigned int' [-Werror,-Wsign-conversion]
hash_value ^= (box.first * 31 + box.second) + 0x9e3779b9 +
~~~~~~~~~~~~~~~^~~~~~~~~~~~ ~
/in/sokoban.hpp:28:33: error: implicit conversion changes signedness: 'int' to 'unsigned int' [-Werror,-Wsign-conversion]
(hash_value << 6) + (hash_value >> 2);
~~~~~~~~~~~^~~~
/in/sokoban.hpp:28:53: error: implicit conversion changes signedness: 'int' to 'unsigned int' [-Werror,-Wsign-conversion]
(hash_value << 6) + (hash_value >> 2);
~ ~~~~~~~~~~~^~~~
/in/sokoban.hpp:57:12: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[new_y][new_x] == '#') {
~~~~ ^~~~~
/in/sokoban.hpp:57:19: 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_y][new_x] == '#') {
~~~~ ^~~~~
/in/sokoban.hpp:79:12: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[new_box_y][new_box_x] == '#' ||
~~~~ ^~~~~~~~~
/in/sokoban.hpp:79:23: 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_box_y][new_box_x] == '#' ||
~~~~ ^~~~~~~~~
/in/sokoban.hpp:101:18: error: implicit conversion changes signedness: 'const int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[box.second][box.first] != 'T') {
~~~~ ~~~~^~~~~~
/in/sokoban.hpp:101:30: error: implicit conversion changes signedness: 'const int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[box.second][box.first] != 'T') {
~~~~ ~~~~^~~~~
/in/sokoban.hpp:122:15: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(l);
~~~~~~ ^
/in/sokoban.hpp:125:33: 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:138:16: 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:138:19: 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:141:14: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[i][j] = '.';
~~~~ ^
/in/sokoban.hpp:141:17: 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[i][j] = '.';
~~~~ ^
/in/sokoban.hpp:142:23: 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:142:26: 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:144:14: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[i][j] = '.';
~~~~ ^
/in/sokoban.hpp:144:17: 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[i][j] = '.';
~~~~ ^
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