Record Detail

Compile Error

/in/game.cpp: In function 'bool AddGhost(Game*, int, int, Direction)':
/in/game.cpp:275:26: error: request for member 'gr' in 'ghost[game->game::g]', which is of pointer type 'Ghost* {aka ghost*}' (maybe you meant to use '->' ?)
         ghost[game -> g].gr = r;
                          ^~
/in/game.cpp:276:26: error: request for member 'gc' in 'ghost[game->game::g]', which is of pointer type 'Ghost* {aka ghost*}' (maybe you meant to use '->' ?)
         ghost[game -> g].gc = c;
                          ^~
/in/game.cpp:277:26: error: request for member 'direction' in 'ghost[game->game::g]', which is of pointer type 'Ghost* {aka ghost*}' (maybe you meant to use '->' ?)
         ghost[game -> g].direction = direction;
                          ^~~~~~~~~

Information

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