Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:192:34: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == '#' && grid[box.first + dx[(i + 1) % 4]][box.second + dy[(i + 1) % 4]] == '#')
                               ~ ^~~~~
/in/sokoban.hpp:192:54: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == '#' && grid[box.first + dx[(i + 1) % 4]][box.second + dy[(i + 1) % 4]] == '#')
                                                   ~ ^~~~~
/in/sokoban.hpp:192:88: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == '#' && grid[box.first + dx[(i + 1) % 4]][box.second + dy[(i + 1) % 4]] == '#')
                                                                                     ~ ^~~~~~~~~~~~~~~
/in/sokoban.hpp:192:118: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == '#' && grid[box.first + dx[(i + 1) % 4]][box.second + dy[(i + 1) % 4]] == '#')
                                                                                                                   ~ ^~~~~~~~~~~~~~~
/in/sokoban.hpp:194:34: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                               ~ ^~~~~
/in/sokoban.hpp:194:54: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                   ~ ^~~~~
/in/sokoban.hpp:194:88: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                     ~ ^~~~~~~~~~~~~~~
/in/sokoban.hpp:194:118: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                   ~ ^~~~~~~~~~~~~~~
/in/sokoban.hpp:194:162: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                                                               ~ ^~~~~
/in/sokoban.hpp:194:170: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                                                                       ~ ^~~~~~~~~~~~~~~
/in/sokoban.hpp:194:200: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                                                                                                     ~ ^~~~~
/in/sokoban.hpp:194:208: error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]
            if (grid[box.first + dx[i]][box.second + dy[i]] == 'B' && grid[box.first + dx[(i + 3) % 4]][box.second + dy[(i + 3) % 4]] == '#' && grid[box.first + dx[i] + dx[(i + 3) % 4]][box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                                                                                                             ~ ^~~~~~~~~~~~~~~
12 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 18:53:01
Judged At
2024-11-27 18:53:01
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes