Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:188:95: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                        std::pair<size_t, size_t> pushedBox = {(size_t)(nextBoxPos[j].first + currDir1), (size_t)(nextBoxPos[j].second + currDir2)};
                                                                                            ~ ^~~~~~~~
/in/sokoban.hpp:188:138: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                        std::pair<size_t, size_t> pushedBox = {(size_t)(nextBoxPos[j].first + currDir1), (size_t)(nextBoxPos[j].second + currDir2)};
                                                                                                                                       ~ ^~~~~~~~
2 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-24 21:43:42
Judged At
2024-11-24 21:43:42
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes