Record Detail

Compile Error

/in/game.cpp: In function 'void MovePacman(Game*, Direction)':
/in/game.cpp:180:15: error: 'Game {aka struct game}' has no member named 'old_superpower'; did you mean 'superpower'?
         game->old_superpower-=1;
               ^~~~~~~~~~~~~~
               superpower
/in/game.cpp:231:15: error: 'Game {aka struct game}' has no member named 'old_superpower'; did you mean 'superpower'?
         game->old_superpower=CAPSULE_DURATION;
               ^~~~~~~~~~~~~~
               superpower
/in/game.cpp: In function 'void MoveGhosts(Game*)':
/in/game.cpp:379:63: error: 'Game {aka struct game}' has no member named 'old_superpower'; did you mean 'superpower'?
         else if (game->superpower==CAPSULE_DURATION && (game->old_superpower % 2) == 1)
                                                               ^~~~~~~~~~~~~~
                                                               superpower

Information

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