Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:46:23: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
    size_t y=(size_t)(p-x*((int)grid[0].size()));
                      ^~
/in/sokoban.hpp:46:28: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
    size_t y=(size_t)(p-x*((int)grid[0].size()));
                         ~ ^~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:98:17: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
        result+=Man_distance(x1,y1,x2,y2);
              ~~^~~~~~~~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:107:27: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
        size_t y=(size_t)(number-x*((int)grid[0].size()));
                          ^~~~~~~
/in/sokoban.hpp:107:37: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
        size_t y=(size_t)(number-x*((int)grid[0].size()));
                                  ~ ^~~~~~~~~~~~~~~~~~~
/in/sokoban.hpp:150:27: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
        size_t y=(size_t)(number-x*((int)grid[0].size()));
                          ^~~~~~~
/in/sokoban.hpp:150:37: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
        size_t y=(size_t)(number-x*((int)grid[0].size()));
                                  ~ ^~~~~~~~~~~~~~~~~~~
7 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 13:11:27
Judged At
2024-11-22 13:11:27
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes