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:61: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:61: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:63: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:63: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:65: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:65: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:100: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:101: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:115:60: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int box_new_x = box.first + directions[d].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:116:61: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int box_new_y = box.second + directions[d].second;
~~~~~~~~~~ ^
/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];
~~~~~~~~~~~~~~ ^
/in/sokoban.hpp:138: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:139:56: 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]
bool loop = check_loop(new_path.substr(last_move));
~~~~~~ ^~~~~~~~~
17 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1