In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:35:17: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid.resize(rows);
~~~~~~ ^~~~
/in/sokoban.hpp:37:14: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[i].clear();
~~~~ ^
/in/sokoban.hpp:39:18: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[i] += static_cast<char>(ch);
~~~~ ^
/in/sokoban.hpp:49:21: error: implicit conversion changes signedness: 'const int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[pos.row][pos.col] != '#';
~~~~ ~~~~^~~
/in/sokoban.hpp:49:30: error: implicit conversion changes signedness: 'const int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[pos.row][pos.col] != '#';
~~~~ ~~~~^~~
/in/sokoban.hpp:83:59: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
pos new_player = {cur_player.row + directions[d].first, cur_player.col + directions[d].second};
~~~~~~~~~~ ^
/in/sokoban.hpp:83:97: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
pos new_player = {cur_player.row + directions[d].first, cur_player.col + directions[d].second};
~~~~~~~~~~ ^
/in/sokoban.hpp:92:57: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
pos new_box = {box.row + directions[d].first , box.col + directions[d].second};
~~~~~~~~~~ ^
/in/sokoban.hpp:92:89: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
pos new_box = {box.row + directions[d].first , box.col + directions[d].second};
~~~~~~~~~~ ^
/in/sokoban.hpp:107:68: 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]
bfsqueue.push({new_player, new_boxes, path + dir_chars[d]});
~~~~~~~~~ ^
/in/sokoban.hpp:115:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return (grid[box.row - 1][box.col] == '#' && grid[box.row][box.col - 1] == '#') ||
~~~~ ~~~~~~~~^~~
/in/sokoban.hpp:115:35: error: implicit conversion changes signedness: 'const int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return (grid[box.row - 1][box.col] == '#' && grid[box.row][box.col - 1] == '#') ||
~~~~ ~~~~^~~
/in/sokoban.hpp:115:59: error: implicit conversion changes signedness: 'const int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return (grid[box.row - 1][box.col] == '#' && grid[box.row][box.col - 1] == '#') ||
~~~~ ~~~~^~~
/in/sokoban.hpp:115:72: 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 (grid[box.row - 1][box.col] == '#' && grid[box.row][box.col - 1] == '#') ||
~~~~ ~~~~~~~~^~~
/in/sokoban.hpp:116:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
(grid[box.row - 1][box.col] == '#' && grid[box.row][box.col + 1] == '#') ||
~~~~ ~~~~~~~~^~~
/in/sokoban.hpp:116:35: error: implicit conversion changes signedness: 'const int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
(grid[box.row - 1][box.col] == '#' && grid[box.row][box.col + 1] == '#') ||
~~~~ ~~~~^~~
/in/sokoban.hpp:116:59: error: implicit conversion changes signedness: 'const int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
(grid[box.row - 1][box.col] == '#' && grid[box.row][box.col + 1] == '#') ||
~~~~ ~~~~^~~
/in/sokoban.hpp:116:72: 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]
(grid[box.row - 1][box.col] == '#' && grid[box.row][box.col + 1] == '#') ||
~~~~ ~~~~~~~~^~~
/in/sokoban.hpp:117:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
(grid[box.row + 1][box.col] == '#' && grid[box.row][box.col - 1] == '#') ||
~~~~ ~~~~~~~~^~~
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