In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:105:51: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
unsigned long newx=new_pos(directions[i].first,x);
~~~~~~~~~~ ^
/in/sokoban.hpp:106:51: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
unsigned long newy=new_pos(directions[i].second,y);
~~~~~~~~~~ ^
/in/sokoban.hpp:160:12: error: no matching function for call to 'deadlock1'
if(deadlock1(rows,cols,x,y,boxes,grid)||deadlock2(x,y,grid,boxes))
^~~~~~~~~
/in/sokoban.hpp:85:6: note: candidate function not viable: requires 5 arguments, but 6 were provided
bool deadlock1(unsigned long rows, unsigned long cols, unsigned long x, unsigned long y,
^
/in/sokoban.hpp:211:26: error: no matching function for call to 'deadlock1'
if((!deadlock1(rows,cols,new_boxx,new_boxy,boxes,grid))&&(!deadlock2(new_boxx,new_boxy,grid,boxes))){
^~~~~~~~~
/in/sokoban.hpp:85:6: note: candidate function not viable: requires 5 arguments, but 6 were provided
bool deadlock1(unsigned long rows, unsigned long cols, unsigned long x, unsigned long y,
^
4 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1