Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
In file included from /in/sokoban.hpp:9:
/in/Distance.hpp:150:9: error: unused variable 'y1' [-Werror,-Wunused-variable]
    int y1 = static_cast<int>(p1) % col;
        ^
In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:279:56: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
            uint16_t newPlayerPos = currentNode.player + dir[_];
                     ~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/sokoban.hpp:322:51: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
                uint16_t newBoxPos = newPlayerPos + dir[_];
                         ~~~~~~~~~   ~~~~~~~~~~~~~^~~~~~~~
3 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-22 00:37:22
Judged At
2024-11-22 00:37:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes