Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:85:29: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                      ~~~~ ~^~
/in/sokoban.hpp:85:33: 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]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                      ~~~~      ^
/in/sokoban.hpp:85:52: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                                             ~~~~ ~^~
/in/sokoban.hpp:85:56: 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]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                                             ~~~~      ^
/in/sokoban.hpp:85:76: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                                                                      ~~~~ ^
/in/sokoban.hpp:85:80: 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]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                                                                      ~~~~    ~^~
/in/sokoban.hpp:85:99: error: implicit conversion changes signedness: 'int' to 'std::vector::size_type' (aka 'unsigned long') [-Werror,-Wsign-conversion]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                                                                                             ~~~~ ^
/in/sokoban.hpp:85:103: 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]
    bool inCorner = ((grid[x-1][y] == '#' || grid[x+1][y] == '#') && (grid[x][y-1] == '#' || grid[x][y+1] == '#'));
                                                                                             ~~~~    ~^~
8 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 21:34:48
Judged At
2024-11-27 21:34:48
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes