Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:12:9: error: keyword is hidden by macro definition [-Werror,-Wkeyword-macro]
#define unsigned long long ull;
        ^
/in/sokoban.hpp:64:32: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            char cell = layout[i][j];
                        ~~~~~~ ^
/in/sokoban.hpp:64:35: error: implicit conversion changes signedness: 'int' to 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            char cell = layout[i][j];
                        ~~~~~~    ^
/in/sokoban.hpp:65:17: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            map[i][j] = cell;
            ~~~ ^
/in/sokoban.hpp:65:20: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            map[i][j] = cell;
            ~~~    ^
/in/sokoban.hpp:93:16: error: implicit conversion changes signedness: 'const int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    if(map[pos.row][pos.col] == '#'){
       ~~~ ~~~~^~~
/in/sokoban.hpp:93:25: error: implicit conversion changes signedness: 'const int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    if(map[pos.row][pos.col] == '#'){
       ~~~          ~~~~^~~
/in/sokoban.hpp:89:94: error: unused parameter 'boxes' [-Werror,-Wunused-parameter]
bool isValidMove(const GridPos& pos, const vector<vector<char>>& map, const vector<GridPos>& boxes) {
                                                                                             ^
/in/sokoban.hpp:102:39: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool horizontalBlocked = (map[row - 1][col] == '#' && map[row + 1][col] == '#');
                              ~~~ ~~~~^~~
/in/sokoban.hpp:102:44: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool horizontalBlocked = (map[row - 1][col] == '#' && map[row + 1][col] == '#');
                              ~~~          ^~~
/in/sokoban.hpp:102:67: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool horizontalBlocked = (map[row - 1][col] == '#' && map[row + 1][col] == '#');
                                                          ~~~ ~~~~^~~
/in/sokoban.hpp:102:72: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool horizontalBlocked = (map[row - 1][col] == '#' && map[row + 1][col] == '#');
                                                          ~~~          ^~~
/in/sokoban.hpp:103:33: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool verticalBlocked = (map[row][col - 1] == '#' && map[row][col + 1] == '#');
                            ~~~ ^~~
/in/sokoban.hpp:103:42: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool verticalBlocked = (map[row][col - 1] == '#' && map[row][col + 1] == '#');
                            ~~~      ~~~~^~~
/in/sokoban.hpp:103:61: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool verticalBlocked = (map[row][col - 1] == '#' && map[row][col + 1] == '#');
                                                        ~~~ ^~~
/in/sokoban.hpp:103:70: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool verticalBlocked = (map[row][col - 1] == '#' && map[row][col + 1] == '#');
                                                        ~~~      ~~~~^~~
16 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 19:45:31
Judged At
2024-11-26 19:45:31
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes