Record Detail

Compile Error

/in/game.cpp: In function 'void RestoreGhosts(Game*)':
/in/game.cpp:351:39: error: 'Game {aka struct game}' has no member named 'scaredGhosts'
     for (auto& scaredGhostPos : game->scaredGhosts) {
                                       ^~~~~~~~~~~~
/in/game.cpp:356:11: error: 'Game {aka struct game}' has no member named 'scaredGhosts'
     game->scaredGhosts.clear();
           ^~~~~~~~~~~~
/in/game.cpp: In function 'void PacmanEat(Game*, int, int)':
/in/game.cpp:418:34: error: 'Game {aka struct game}' has no member named 'ghosts'
         for (auto& ghost : game->ghosts) {
                                  ^~~~~~
/in/game.cpp:421:23: error: 'Game {aka struct game}' has no member named 'scaredGhosts'
                 game->scaredGhosts.push_back({ghost.row, ghost.col});
                       ^~~~~~~~~~~~
/in/game.cpp:427:34: error: 'Game {aka struct game}' has no member named 'ghosts'
         for (auto& ghost : game->ghosts) {
                                  ^~~~~~
/in/game.cpp:433:43: error: 'Game {aka struct game}' has no member named 'scaredGhosts'
         for (auto& scaredGhostPos : game->scaredGhosts) {
                                           ^~~~~~~~~~~~

Information

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