/ Test /

Record Detail

Compile Error

/in/map.cpp:127:67: error: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
           discovered[color][y][x] || (is_button(c) && discovered[button_to_id(c)][y][x]);
                                                       ~~~~~~~~~~ ^~~~~~~~~~~~~~~
/in/map.cpp:158:16: error: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    discovered[c][y][x] = 1;
    ~~~~~~~~~~ ^
/in/map.cpp:262:43: error: implicit conversion changes signedness: 'char' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
        char action = backtracker[current.color][current.y][current.x];
                      ~~~~~~~~~~~ ~~~~~~~~^~~~~
3 errors generated.

Information

Submit By
Type
Submission
Problem
281 Puzzle Solver
Language
C++ (Clang++, with memory check)
Submit At
2023-09-05 00:00:16
Judged At
2023-09-05 00:00:16
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes