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:64: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:64: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:64: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:64: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: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;
~~~~~~~~~~ ^
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