Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:77:22: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    size_t start_x = -1, start_y = -1;
           ~~~~~~~   ^~
/in/sokoban.hpp:77:36: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    size_t start_x = -1, start_y = -1;
                         ~~~~~~~   ^~
/in/sokoban.hpp:78:12: error: redefinition of 'start_x'
    size_t start_x = std::numeric_limits<size_t>::max(), start_y = std::numeric_limits<size_t>::max();
           ^
/in/sokoban.hpp:77:12: note: previous definition is here
    size_t start_x = -1, start_y = -1;
           ^
/in/sokoban.hpp:78:58: error: redefinition of 'start_y'
    size_t start_x = std::numeric_limits<size_t>::max(), start_y = std::numeric_limits<size_t>::max();
                                                         ^
/in/sokoban.hpp:77:26: note: previous definition is here
    size_t start_x = -1, start_y = -1;
                         ^
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-26 23:53:50
Judged At
2024-11-26 23:53:50
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes