Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:211:49: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
            current.Player = {(size_t)new_row - dir_row[d], (size_t)new_col - dir_col[d]};
                                              ~ ^~~~~~~~~~
/in/sokoban.hpp:211:79: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
            current.Player = {(size_t)new_row - dir_row[d], (size_t)new_col - dir_col[d]};
                                                                            ~ ^~~~~~~~~~
/in/sokoban.hpp:222:9: error: unused variable 'R' [-Werror,-Wunused-variable]
    int R=(int)grid.size();
        ^
/in/sokoban.hpp:223:9: error: unused variable 'C' [-Werror,-Wunused-variable]
    int C=(int)grid[0].size();
        ^
4 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-27 00:17:00
Judged At
2024-11-27 00:17:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes