/in/project1.cpp:28:29: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
map original_map(height, vector<char>(width, 0));
~~~~~~~~~~~~ ^~~~~~
/in/project1.cpp:28:50: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
map original_map(height, vector<char>(width, 0));
~~~~~~ ^~~~~
/in/project1.cpp:29:42: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered discovered_map(num_colors + 1, vector<vector<char>>(height, vector<char>(width, 0)));
~~~~~~~~~~~~~~ ~~~~~~~~~~~^~~
/in/project1.cpp:29:68: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered discovered_map(num_colors + 1, vector<vector<char>>(height, vector<char>(width, 0)));
~~~~~~ ^~~~~~
/in/project1.cpp:29:89: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered discovered_map(num_colors + 1, vector<vector<char>>(height, vector<char>(width, 0)));
~~~~~~ ^~~~~
/in/project1.cpp:30:39: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
backtrack backtracker(num_colors + 1, vector<vector<char>>(height, vector<char>(width, -1)));
~~~~~~~~~~~ ~~~~~~~~~~~^~~
/in/project1.cpp:30:65: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
backtrack backtracker(num_colors + 1, vector<vector<char>>(height, vector<char>(width, -1)));
~~~~~~ ^~~~~~
/in/project1.cpp:30:86: warning: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
backtrack backtracker(num_colors + 1, vector<vector<char>>(height, vector<char>(width, -1)));
~~~~~~ ^~~~~
/in/project1.cpp:32:39: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
state start = read_map(num_colors, width, height, original_map);
~~~~~~~~ ^~~~~~~~~~
/in/project1.cpp:32:51: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
state start = read_map(num_colors, width, height, original_map);
~~~~~~~~ ^~~~~
/in/project1.cpp:32:58: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
state start = read_map(num_colors, width, height, original_map);
~~~~~~~~ ^~~~~~
/in/project1.cpp:33:32: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
state end = discover_route(width, height, start, original_map, discovered_map, backtracker,
~~~~~~~~~~~~~~ ^~~~~
/in/project1.cpp:33:39: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
state end = discover_route(width, height, start, original_map, discovered_map, backtracker,
~~~~~~~~~~~~~~ ^~~~~~
/in/project1.cpp:36:66: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
output(end, backtracker, original_map, opts, discovered_map, width, height, num_colors);
~~~~~~ ^~~~~
/in/project1.cpp:36:73: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
output(end, backtracker, original_map, opts, discovered_map, width, height, num_colors);
~~~~~~ ^~~~~~
/in/project1.cpp:36:81: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
output(end, backtracker, original_map, opts, discovered_map, width, height, num_colors);
~~~~~~ ^~~~~~~~~~
16 warnings generated.
/in/map.cpp:42:31: warning: implicit conversion changes signedness: '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type' (aka 'char') to 'unsigned char' [-Wsign-conversion]
unsigned char t = tmp[i];
~ ^~~~~~
/in/map.cpp:67:25: warning: implicit conversion changes signedness: 'unsigned char' to '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type' (aka 'char') [-Wsign-conversion]
map[j][i] = t;
~ ^
/in/map.cpp:126:23: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered[color][y][x] || (is_button(c) && discovered[button_to_id(c)][y][x]);
~~~~~~~~~~ ^~~~~
/in/map.cpp:126:67: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered[color][y][x] || (is_button(c) && discovered[button_to_id(c)][y][x]);
~~~~~~~~~~ ^~~~~~~~~~~~~~~
/in/map.cpp:157:16: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered[c][y][x] = 1;
~~~~~~~~~~ ^
/in/map.cpp:164:21: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
if (backtracker[c][y][x] != -1) {
~~~~~~~~~~~ ^
/in/map.cpp:167:17: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
backtracker[c][y][x] = action;
~~~~~~~~~~~ ^
/in/map.cpp:182:22: warning: implicit conversion changes signedness: 'const char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered[start.color][start.y][start.x] = 1;
~~~~~~~~~~ ~~~~~~^~~~~
/in/map.cpp:261:43: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
char action = backtracker[current.color][current.y][current.x];
~~~~~~~~~~~ ~~~~~~~~^~~~~
/in/map.cpp:298:43: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
char action = backtracker[current.color][current.y][current.x];
~~~~~~~~~~~ ~~~~~~~~^~~~~
/in/map.cpp:313:32: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered[current.color][current.y][current.x] = '@';
~~~~~~~~~~ ~~~~~~~~^~~~~
/in/map.cpp:314:24: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
discovered[action][current.y][current.x] = '%';
~~~~~~~~~~ ^~~~~~
/in/map.cpp:362:33: warning: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Wsign-conversion]
char c = discovered[layer][s.y][s.x];
~~~~~~~~~~ ^~~~~
13 warnings generated.