Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:127:29: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
            size_t nr = r + dr;
                          ~ ^~
/in/sokoban.hpp:128:29: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
            size_t nc = c + dc;
                          ~ ^~
/in/sokoban.hpp:141:35: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                size_t nnr = nr + dr;
                                ~ ^~
/in/sokoban.hpp:142:35: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                size_t nnc = nc + dc;
                                ~ ^~
/in/sokoban.hpp:159:55: error: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                    q.emplace(new_state, path + moves[d]);
                                                ~~~~~ ^
/in/sokoban.hpp:168:51: error: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                q.emplace(new_state, path + moves[d]);
                                            ~~~~~ ^
6 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1

Information

Submit By
Type
Submission
Homework
Project3
Language
C++
Submit At
2024-11-28 03:17:07
Judged At
2024-11-28 03:17:07
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes