In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:13:88: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return x >= 0 && x < (int)grid.size() && y >= 0 && y < (int)grid[0].size() && grid[x][y] != '#';
~~~~ ^
/in/sokoban.hpp:13:91: 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 < (int)grid.size() && y >= 0 && y < (int)grid[0].size() && grid[x][y] != '#';
~~~~ ^
/in/sokoban.hpp:28:17: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(rows);
~~~~~~ ^~~~
/in/sokoban.hpp:31:27: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
getline(cin, grid[i]);
~~~~ ^
/in/sokoban.hpp:44: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:44: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:48:27: 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:48: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]
else if (grid[i][j] == 'B')
~~~~ ^
/in/sokoban.hpp:73:27: 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:73: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]
else if (grid[i][j] == 'T')
~~~~ ^
/in/sokoban.hpp:184:24: error: use of undeclared identifier 'INT_MAX'
int min_dist = INT_MAX;
^
/in/sokoban.hpp:201:39: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
for (int j = 0; j < (int)grid[i].size(); ++j)
~~~~ ^
/in/sokoban.hpp:203: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:203: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:208:27: 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:208: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]
else if (grid[i][j] == 'B')
~~~~ ^
/in/sokoban.hpp:212:27: 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:212: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]
else if (grid[i][j] == 'T')
~~~~ ^
/in/sokoban.hpp:248:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int nx = current.player_x + DIRECTIONS[d].first;
~~~~~~~~~~ ^
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