Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:327:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nx=(int)sx+dx[0];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:328:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                ny=(int)sy+dy[0];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:329:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nnx=(int)nx+dx[0];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:330:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nny=(int)ny+dy[0];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:333:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nx=(int)sx+dx[1];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:334:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                ny=(int)sy+dy[1];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:335:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nnx=(int)nx+dx[1];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:336:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nny=(int)ny+dy[1];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:339:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nx=(int)sx+dx[2];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:340:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                ny=(int)sy+dy[2];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:341:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nnx=(int)nx+dx[2];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:342:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nny=(int)ny+dy[2];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:345:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nx=(int)sx+dx[3];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:346:27: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                ny=(int)sy+dy[3];
                  ~~~~~~~~^~~~~~
/in/sokoban.hpp:347:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nnx=(int)nx+dx[3];
                   ~~~~~~~~^~~~~~
/in/sokoban.hpp:348:28: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
                nny=(int)ny+dy[3];
                   ~~~~~~~~^~~~~~
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-27 23:19:05
Judged At
2024-11-27 23:19:05
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes