Record Detail

Compile Error

/in/game.cpp: In function 'void MovePacman(Game*, Direction)':
/in/game.cpp:193:41: error: 'Ghost {aka struct ghost}' has no member named 'flag'
                     if (game->ghosts[i].flag == false) continue;
                                         ^~~~
/in/game.cpp:200:41: error: 'Ghost {aka struct ghost}' has no member named 'flag'
                     if (game->ghosts[i].flag == false) continue;
                                         ^~~~
/in/game.cpp:219:37: error: 'Ghost {aka struct ghost}' has no member named 'flag'
                     game->ghosts[m].flag = false;
                                     ^~~~
/in/game.cpp: In function 'bool AddGhost(Game*, int, int, Direction)':
/in/game.cpp:306:36: error: 'Ghost {aka struct ghost}' has no member named 'flag'
     game->ghosts[game->ghostCount].flag = true;
                                    ^~~~
/in/game.cpp: In function 'void MoveGhosts(Game*)':
/in/game.cpp:334:33: error: 'Ghost {aka struct ghost}' has no member named 'flag'
             if (game->ghosts[i].flag == false) continue;
                                 ^~~~
/in/game.cpp:435:37: error: 'Ghost {aka struct ghost}' has no member named 'flag'
                 if (game->ghosts[i].flag == false) continue;
                                     ^~~~
/in/game.cpp:464:41: error: 'Ghost {aka struct ghost}' has no member named 'flag'
                         game->ghosts[i].flag = false; // 1 change
                                         ^~~~
/in/game.cpp:513:41: error: 'Ghost {aka struct ghost}' has no member named 'flag'
                         game->ghosts[i].flag = false;
                                         ^~~~

Information

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