In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:97:23: error: implicit conversion changes signedness: 'int' to 'std::vector<bool, type-parameter-0-0>::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
visitedWorker[worker] = true;
~~~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:100:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int delta = cost[worker][task] - labelWorker[worker] - labelTask[task];
~~~~ ^~~~~~
/in/sokoban.hpp:100:58: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int delta = cost[worker][task] - labelWorker[worker] - labelTask[task];
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:104:33: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
matchWorker[worker] = task;
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:97:23: error: implicit conversion changes signedness: 'int' to 'std::vector<bool, type-parameter-0-0>::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
visitedWorker[worker] = true;
~~~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:119:20: note: in instantiation of function template specialization 'hungarianAlgorithm(const vector<vector<int> > &)::(anonymous class)::operator()<(lambda at /in/sokoban.hpp:96:16) &>' requested here
while (!dfs(worker, visitedWorker, visitedTask, dfs)) {
^
/in/sokoban.hpp:100:30: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int delta = cost[worker][task] - labelWorker[worker] - labelTask[task];
~~~~ ^~~~~~
/in/sokoban.hpp:100:58: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
int delta = cost[worker][task] - labelWorker[worker] - labelTask[task];
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:104:33: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
matchWorker[worker] = task;
~~~~~~~~~~~ ^~~~~~
/in/sokoban.hpp:104:43: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type' (aka 'int') [-Werror,-Wshorten-64-to-32]
matchWorker[worker] = task;
~ ^~~~
/in/sokoban.hpp:122:34: error: implicit conversion changes signedness: 'int' to 'std::vector<bool, type-parameter-0-0>::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (!visitedTask[task]) {
~~~~~~~~~~~ ^~~~
/in/sokoban.hpp:123:46: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
delta = min(delta, slack[task]);
~~~~~ ^~~~
/in/sokoban.hpp:127:35: error: implicit conversion changes signedness: 'int' to 'std::vector<bool, type-parameter-0-0>::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (visitedWorker[i]) labelWorker[i] += delta;
~~~~~~~~~~~~~ ^
/in/sokoban.hpp:127:51: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (visitedWorker[i]) labelWorker[i] += delta;
~~~~~~~~~~~ ^
/in/sokoban.hpp:128:33: error: implicit conversion changes signedness: 'int' to 'std::vector<bool, type-parameter-0-0>::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (visitedTask[i]) labelTask[i] -= delta;
~~~~~~~~~~~ ^
/in/sokoban.hpp:128:47: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
if (visitedTask[i]) labelTask[i] -= delta;
~~~~~~~~~ ^
/in/sokoban.hpp:129:28: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
else slack[i] -= delta;
~~~~~ ^
/in/sokoban.hpp:136:27: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
totalCost += cost[worker][matchWorker[worker]];
~~~~ ^~~~~~
/in/sokoban.hpp:136:35: error: implicit conversion changes signedness: '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type' (aka 'int') to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
totalCost += cost[worker][matchWorker[worker]];
~~~~ ^~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:136:47: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
totalCost += cost[worker][matchWorker[worker]];
~~~~~~~~~~~ ^~~~~~
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