In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:265:32: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
int id = neighbor->x * grid[0].size() + neighbor->y;
~~~~~~~~~~^ ~
/in/sokoban.hpp:265:63: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
int id = neighbor->x * grid[0].size() + neighbor->y;
~ ~~~~~~~~~~^
/in/sokoban.hpp:265:51: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
int id = neighbor->x * grid[0].size() + neighbor->y;
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/in/sokoban.hpp:284:19: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
allNodes[box->x * grid[0].size() + box->y] = box;
~~~~~^ ~
/in/sokoban.hpp:284:45: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
allNodes[box->x * grid[0].size() + box->y] = box;
~ ~~~~~^
/in/sokoban.hpp:306:32: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
int id = neighbor->x * grid[0].size() + neighbor->y;
~~~~~~~~~~^ ~
/in/sokoban.hpp:306:63: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
int id = neighbor->x * grid[0].size() + neighbor->y;
~ ~~~~~~~~~~^
/in/sokoban.hpp:313:35: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
temp_grid[current.x][current.y] = '.';////////////////////
~~~~~~~~~ ~~~~~~~~^
/in/sokoban.hpp:313:46: 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]
temp_grid[current.x][current.y] = '.';////////////////////
~~~~~~~~~ ~~~~~~~~^
/in/sokoban.hpp:284:38: error: implicit conversion loses integer precision: 'unsigned long' to 'std::unordered_map<int, std::shared_ptr<Node>, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<const int, std::shared_ptr<Node> > > >::key_type' (aka 'int') [-Werror,-Wshorten-64-to-32]
allNodes[box->x * grid[0].size() + box->y] = box;
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/sokoban.hpp:306:51: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
int id = neighbor->x * grid[0].size() + neighbor->y;
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/in/sokoban.hpp:337:20: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (matrix[row][col] < 0) {
~~~~~~ ^~~
/in/sokoban.hpp:337:25: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (matrix[row][col] < 0) {
~~~~~~ ^~~
/in/sokoban.hpp:343:32: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (currentIndices[r] == col) {
~~~~~~~~~~~~~~ ^
/in/sokoban.hpp:349:28: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
currentIndices[row] = col;
~~~~~~~~~~~~~~ ^~~
/in/sokoban.hpp:350:83: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
findCombinations(matrix, row + 1, currentIndices, currentSum + matrix[row][col], selections);
~~~~~~ ^~~
/in/sokoban.hpp:350:88: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
findCombinations(matrix, row + 1, currentIndices, currentSum + matrix[row][col], selections);
~~~~~~ ^~~
/in/sokoban.hpp:330:26: error: implicit conversion loses integer precision: 'std::vector::size_type' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
int cols = matrix[0].size();
~~~~ ~~~~~~~~~~^~~~~~
/in/sokoban.hpp:331:13: error: comparison of integers of different signs: 'int' and 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
if (row == matrix.size()) {
~~~ ^ ~~~~~~~~~~~~~
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