Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:55:33: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                while (grid[i + direction][leftge] != '#') {
                              ~ ^~~~~~~~~
/in/sokoban.hpp:60:37: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                    while (grid[i + direction][leftge] == '#') {
                                  ~ ^~~~~~~~~
/in/sokoban.hpp:68:62: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                    while (rightge <= rightbound && grid[i + direction][rightge] != '#') {
                                                           ~ ^~~~~~~~~
/in/sokoban.hpp:69:38: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                        if (grid[i + direction][rightge] == 'T') t = true;
                                   ~ ^~~~~~~~~
/in/sokoban.hpp:75:56: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                            string key = to_string(i + direction) + "," + to_string(index);
                                                     ~ ^~~~~~~~~
/in/sokoban.hpp:78:59: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                                boundary.emplace_back(i + direction, index);
                                                        ~ ^~~~~~~~~
/in/sokoban.hpp:102:42: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                while (grid[upperge][j + direction] != '#') {
                                       ~ ^~~~~~~~~
/in/sokoban.hpp:107:46: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                    while (grid[upperge][j + direction] == '#') {
                                           ~ ^~~~~~~~~
/in/sokoban.hpp:115:71: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                    while (lowerge <= lowerbound && grid[lowerge][j + direction] != '#') {
                                                                    ~ ^~~~~~~~~
/in/sokoban.hpp:116:47: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                        if (grid[lowerge][j + direction] == 'T') t = true;
                                            ~ ^~~~~~~~~
/in/sokoban.hpp:122:81: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                            string key = to_string(index) + "," + to_string(j + direction);
                                                                              ~ ^~~~~~~~~
/in/sokoban.hpp:125:66: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
                                boundary.emplace_back(index, j + direction);
                                                               ~ ^~~~~~~~~
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-23 22:01:11
Judged At
2024-11-23 22:01:11
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes