Record Detail

Compile Error

/in/simulation.cpp: In function 'void OpearateOneRound(world_t&, int)':
/in/simulation.cpp:373:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for(int i=0;i<world.numCreatures;i++){
                 ~^~~~~~~~~~~~~~~~~~~
/in/simulation.cpp: In function 'void printGrid(const grid_t&)':
/in/simulation.cpp:233:22: error: 'direct' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 char direct;
                      ^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 3
Language
C++
Submit At
2024-11-14 20:43:42
Judged At
2024-11-14 20:43:42
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes