In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:408:25: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if(path[i]->x == path[i+1]->x + 1){//上移
~~~~ ^
/in/sokoban.hpp:408:40: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if(path[i]->x == path[i+1]->x + 1){//上移
~~~~ ~^~
/in/sokoban.hpp:409:65: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
auto goal_man = std::make_shared<Node>(path[i]->x + 1, path[i]->y);//注意,x是行,y是列
~~~~ ^
/in/sokoban.hpp:409:81: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
auto goal_man = std::make_shared<Node>(path[i]->x + 1, path[i]->y);//注意,x是行,y是列
~~~~ ^
/in/sokoban.hpp:417:37: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~~~~~~~~~~~^
/in/sokoban.hpp:417:32: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~^~
/in/sokoban.hpp:417:51: 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[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~~~~~~~~~~~^
/in/sokoban.hpp:417:46: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~^~
/in/sokoban.hpp:418:35: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i]->x][path[i]->y] = '.';
~~~~ ~~~~~~~~~^
/in/sokoban.hpp:418:31: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i]->x][path[i]->y] = '.';
~~~~ ^
/in/sokoban.hpp:418: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]
grid[path[i]->x][path[i]->y] = '.';
~~~~ ~~~~~~~~~^
/in/sokoban.hpp:418:43: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i]->x][path[i]->y] = '.';
~~~~ ^
/in/sokoban.hpp:420:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
else if(path[i]->x == path[i+1]->x - 1){//下移
~~~~ ^
/in/sokoban.hpp:420:45: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
else if(path[i]->x == path[i+1]->x - 1){//下移
~~~~ ~^~
/in/sokoban.hpp:421:65: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
auto goal_man = std::make_shared<Node>(path[i]->x - 1, path[i]->y);//注意,x是行,y是列
~~~~ ^
/in/sokoban.hpp:421:81: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
auto goal_man = std::make_shared<Node>(path[i]->x - 1, path[i]->y);//注意,x是行,y是列
~~~~ ^
/in/sokoban.hpp:429:37: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~~~~~~~~~~~^
/in/sokoban.hpp:429:32: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
grid[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~^~
/in/sokoban.hpp:429:51: 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[path[i+1]->x][path[i+1]->y] = 'B';
~~~~ ~~~~~~~~~~~^
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