In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:97:47: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t neighbor = box + directions[i]*MAX_ROW + directions[i+1];
~^~~~~~~
/in/sokoban.hpp:98:48: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t neighbor2 = box - directions[i]*MAX_ROW - directions[i+1];
~^~~~~~~
/in/sokoban.hpp:100:26: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
if (map[neighbor/MAX_ROW][neighbor%MAX_ROW]==1 || map[neighbor2/MAX_ROW][neighbor2%MAX_ROW]==1){
~^~~~~~~
/in/sokoban.hpp:100:44: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
if (map[neighbor/MAX_ROW][neighbor%MAX_ROW]==1 || map[neighbor2/MAX_ROW][neighbor2%MAX_ROW]==1){
~^~~~~~~
/in/sokoban.hpp:100:73: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
if (map[neighbor/MAX_ROW][neighbor%MAX_ROW]==1 || map[neighbor2/MAX_ROW][neighbor2%MAX_ROW]==1){
~^~~~~~~
/in/sokoban.hpp:100:92: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
if (map[neighbor/MAX_ROW][neighbor%MAX_ROW]==1 || map[neighbor2/MAX_ROW][neighbor2%MAX_ROW]==1){
~^~~~~~~
/in/sokoban.hpp:124:26: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t m = box / MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:125:26: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t n = box % MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:152:24: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t a = i / MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:153:24: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t b = i % MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:180:35: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t temp = i * MAX_ROW + j;
~ ^~~~~~~
/in/sokoban.hpp:230:31: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t targetx = player / MAX_ROW, before_targetx = player / MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:230:66: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t targetx = player / MAX_ROW, before_targetx = player / MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:231:31: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t targety = player % MAX_ROW, before_targety = player % MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:231:66: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t targety = player % MAX_ROW, before_targety = player % MAX_ROW;
~ ^~~~~~~
/in/sokoban.hpp:240:31: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t target = targetx * MAX_ROW + targety;
~ ^~~~~~~
/in/sokoban.hpp:241:45: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t before_target = before_targetx * MAX_ROW + before_targety;
~ ^~~~~~~
/in/sokoban.hpp:271:31: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
size_t temp = m * MAX_ROW + n;
~ ^~~~~~~
/in/sokoban.hpp:276:37: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
if (m==positions[0]/MAX_ROW && n==positions[0]%MAX_ROW){ //player + empty space
~^~~~~~~
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