Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:183:24: error: use of undeclared identifier 'INT_MAX'
        int min_dist = INT_MAX;
                       ^
/in/sokoban.hpp:247:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            int nx = current.player_x + DIRECTIONS[d].first;
                                        ~~~~~~~~~~ ^
/in/sokoban.hpp:248:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            int ny = current.player_y + DIRECTIONS[d].second;
                                        ~~~~~~~~~~ ^
/in/sokoban.hpp:261:46: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                int box_nx = nx + DIRECTIONS[d].first;
                                  ~~~~~~~~~~ ^
/in/sokoban.hpp:262:46: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                int box_ny = ny + DIRECTIONS[d].second;
                                  ~~~~~~~~~~ ^
5 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-25 01:55:00
Judged At
2024-11-25 01:55:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes