In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:29:17: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(height);
~~~~~~ ^~~~~~
/in/sokoban.hpp:37:14: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[i] = item;
~~~~ ^
/in/sokoban.hpp:89: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:89: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:97: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:97: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:101: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:101: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:105:27: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
else if (grid[i][j] == 'R'){
~~~~ ^
/in/sokoban.hpp:105: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] == 'R'){
~~~~ ^
/in/sokoban.hpp:152:59: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int newPlayerx = current.playerx + directions[i].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:153:59: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int newPlayery = current.playery + directions[i].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:156:22: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[newPlayerx][newPlayery] == '#') continue;
~~~~ ^~~~~~~~~~
/in/sokoban.hpp:156:34: 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[newPlayerx][newPlayery] == '#') continue;
~~~~ ^~~~~~~~~~
/in/sokoban.hpp:164:58: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int newBoxX = box.first + directions[i].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:165:59: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int newBoxY = box.second + directions[i].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:168:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[newBoxX][newBoxY] == '#' ||
~~~~ ^~~~~~~
/in/sokoban.hpp:168:39: 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[newBoxX][newBoxY] == '#' ||
~~~~ ^~~~~~~
/in/sokoban.hpp:188:76: 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]
q.push({newPlayerx, newPlayery, newBoxes, current.path + moves[i]});
~~~~~ ^
19 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1