Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:192:37: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == '#' && grid[(int)box.first + dx[(i + 1) % 4]][(int)box.second + dy[(i + 1) % 4]] == '#')
                ~~~~ ~~~~~~~~~~~~~~~^~~~~~~
/in/sokoban.hpp:192:62: 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]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == '#' && grid[(int)box.first + dx[(i + 1) % 4]][(int)box.second + dy[(i + 1) % 4]] == '#')
                ~~~~                         ~~~~~~~~~~~~~~~~^~~~~~~
/in/sokoban.hpp:192:101: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == '#' && grid[(int)box.first + dx[(i + 1) % 4]][(int)box.second + dy[(i + 1) % 4]] == '#')
                                                                                ~~~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/sokoban.hpp:192:136: 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]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == '#' && grid[(int)box.first + dx[(i + 1) % 4]][(int)box.second + dy[(i + 1) % 4]] == '#')
                                                                                ~~~~                                   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/sokoban.hpp:194:37: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == 'B' && grid[(int)box.first + dx[(i + 3) % 4]][(int)box.second + dy[(i + 3) % 4]] == '#' && grid[(int)box.first + dx[i] + dx[(i + 3) % 4]][(int)box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                ~~~~ ~~~~~~~~~~~~~~~^~~~~~~
/in/sokoban.hpp:194:62: 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]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == 'B' && grid[(int)box.first + dx[(i + 3) % 4]][(int)box.second + dy[(i + 3) % 4]] == '#' && grid[(int)box.first + dx[i] + dx[(i + 3) % 4]][(int)box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                ~~~~                         ~~~~~~~~~~~~~~~~^~~~~~~
/in/sokoban.hpp:194:101: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == 'B' && grid[(int)box.first + dx[(i + 3) % 4]][(int)box.second + dy[(i + 3) % 4]] == '#' && grid[(int)box.first + dx[i] + dx[(i + 3) % 4]][(int)box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                ~~~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/sokoban.hpp:194:136: 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]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == 'B' && grid[(int)box.first + dx[(i + 3) % 4]][(int)box.second + dy[(i + 3) % 4]] == '#' && grid[(int)box.first + dx[i] + dx[(i + 3) % 4]][(int)box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                ~~~~                                   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/sokoban.hpp:194:193: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == 'B' && grid[(int)box.first + dx[(i + 3) % 4]][(int)box.second + dy[(i + 3) % 4]] == '#' && grid[(int)box.first + dx[i] + dx[(i + 3) % 4]][(int)box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                                                                    ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/sokoban.hpp:194:236: 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]
            if (grid[(int)box.first + dx[i]][(int)box.second + dy[i]] == 'B' && grid[(int)box.first + dx[(i + 3) % 4]][(int)box.second + dy[(i + 3) % 4]] == '#' && grid[(int)box.first + dx[i] + dx[(i + 3) % 4]][(int)box.second + dy[i] + dy[(i + 3) % 4]] == '#')
                                                                                                                                                                    ~~~~                                           ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
10 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:55:24
Judged At
2024-11-27 18:55:24
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes