In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:19:17: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(rows);
~~~~~~ ^~~~
/in/sokoban.hpp:22:37: 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:46:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
char cell = grid[i][j];
~~~~ ^
/in/sokoban.hpp:46:33: 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]
char cell = grid[i][j];
~~~~ ^
/in/sokoban.hpp:122:32: error: use of undeclared identifier 'INT_MAX'
int min_distance = INT_MAX;
^
/in/sokoban.hpp:177:22: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[newPlayerRow][newPlayerCol] == '#')
~~~~ ^~~~~~~~~~~~
/in/sokoban.hpp:177:36: 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[newPlayerRow][newPlayerCol] == '#')
~~~~ ^~~~~~~~~~~~
/in/sokoban.hpp:200:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (grid[newBoxRow][newBoxCol] == '#')
~~~~ ^~~~~~~~~
/in/sokoban.hpp:200:37: 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[newBoxRow][newBoxCol] == '#')
~~~~ ^~~~~~~~~
/in/sokoban.hpp:35:21: error: implicit conversion loses integer precision: 'std::vector::size_type' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
int rows = grid.size();
~~~~ ~~~~~^~~~~~
/in/sokoban.hpp:36:24: error: implicit conversion loses integer precision: 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
int cols = grid[0].size();
~~~~ ~~~~~~~~^~~~~~
11 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1