Record Detail

Compile Error

/in/game.cpp: In function 'bool AddGhost(Game*, int, int, Direction)':
/in/game.cpp:326:40: error: 'Ghost {aka struct ghost}' has no member named 'move'
         game->ghosts[game->ghostCount].move = 1;
                                        ^~~~
/in/game.cpp: In function 'void MoveGhosts(Game*)':
/in/game.cpp:362:151: error: 'Ghost {aka struct ghost}' has no member named 'move'
         if ((game->ghosts[i].alive && game->ghosts[i].scared == false) || (game->ghosts[i].alive && game->ghosts[i].scared == true && game->ghosts[i].move == 0))
                                                                                                                                                       ^~~~
/in/game.cpp:490:37: error: 'Ghost {aka struct ghost}' has no member named 'move'
                 if (game->ghosts[i].move == 0)
                                     ^~~~
/in/game.cpp:492:37: error: 'Ghost {aka struct ghost}' has no member named 'move'
                     game->ghosts[i].move = 1;
                                     ^~~~
/in/game.cpp:496:37: error: 'Ghost {aka struct ghost}' has no member named 'move'
                     game->ghosts[i].move = 0;
                                     ^~~~

Information

Submit By
Type
Submission
Homework
Lab 6: Pacman
Language
C++
Submit At
2024-12-09 16:07:01
Judged At
2024-12-09 16:07:01
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes