In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:31:21: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
map.grid.resize(static_cast<int>(map.rows));
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:33:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
file >> map.grid[i];
~~~ ^
/in/sokoban.hpp:35:26: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (map.grid[i][j] == 'S') {
~~~ ^
/in/sokoban.hpp:35:29: 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 (map.grid[i][j] == 'S') {
~~~ ^
/in/sokoban.hpp:38:33: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (map.grid[i][j] == 'B') {
~~~ ^
/in/sokoban.hpp:38: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]
} else if (map.grid[i][j] == 'B') {
~~~ ^
/in/sokoban.hpp:40:33: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
} else if (map.grid[i][j] == 'T') {
~~~ ^
/in/sokoban.hpp:40: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]
} else if (map.grid[i][j] == 'T') {
~~~ ^
/in/sokoban.hpp:83:51: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int new_row = player_row + directions[d].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:84:51: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int new_col = player_col + directions[d].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:86:102: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (new_row < 0 || new_col < 0 || new_row >= map.rows || new_col >= map.cols || map.grid[new_row][new_col] == '#') {
~~~ ^~~~~~~
/in/sokoban.hpp:86:111: 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 (new_row < 0 || new_col < 0 || new_row >= map.rows || new_col >= map.cols || map.grid[new_row][new_col] == '#') {
~~~ ^~~~~~~
/in/sokoban.hpp:102:60: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int box_new_row = new_row + directions[d].first;
~~~~~~~~~~ ^
/in/sokoban.hpp:103:60: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int box_new_col = new_col + directions[d].second;
~~~~~~~~~~ ^
/in/sokoban.hpp:106:34: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
map.grid[box_new_row][box_new_col] == '#' ||
~~~ ^~~~~~~~~~~
/in/sokoban.hpp:106:47: 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]
map.grid[box_new_row][box_new_col] == '#' ||
~~~ ^~~~~~~~~~~
/in/sokoban.hpp:135:45: 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({new_state, path + moves[d]});
~~~~~ ^
/in/Compile/check.cpp:85:22: error: use of undeclared identifier 'print_answer'
submit_ans = print_answer(index);
^
/in/Compile/check.cpp:88:22: error: no matching function for call to 'solve'
submit_ans = solve(grid_copy);
^~~~~
/in/sokoban.hpp:50:13: note: candidate function not viable: no known conversion from 'vector<std::__cxx11::string>' (aka 'vector<basic_string<char> >') to 'const Map' for 1st argument
std::string solve(const Map& map) {
^
19 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1