Record Detail

Compile Error

/in/game.cpp: In function 'void MovePacman(Game*, Direction)':
/in/game.cpp:127:30: error: 'Game {aka struct game}' has no member named 'Pr'
     if(IsValidPos(game,game->Pr+a,game->Pc+b)){
                              ^~
/in/game.cpp:127:41: error: 'Game {aka struct game}' has no member named 'Pc'
     if(IsValidPos(game,game->Pr+a,game->Pc+b)){
                                         ^~
/in/game.cpp:128:29: error: 'Game {aka struct game}' has no member named 'Pr'
         if(game->grid[game->Pr+a][game->Pc+b]=='.'){
                             ^~
/in/game.cpp:128:41: error: 'Game {aka struct game}' has no member named 'Pc'
         if(game->grid[game->Pr+a][game->Pc+b]=='.'){
                                         ^~
/in/game.cpp:129:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr][game->Pc]=' ';
                              ^~
/in/game.cpp:129:40: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr][game->Pc]=' ';
                                        ^~
/in/game.cpp:132:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr+a][game->Pc+b]='C';
                              ^~
/in/game.cpp:132:42: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr+a][game->Pc+b]='C';
                                          ^~
/in/game.cpp:134:34: error: 'Game {aka struct game}' has no member named 'Pr'
         else if(game->grid[game->Pr+a][game->Pc+b]=='@'){
                                  ^~
/in/game.cpp:134:46: error: 'Game {aka struct game}' has no member named 'Pc'
         else if(game->grid[game->Pr+a][game->Pc+b]=='@'){
                                              ^~
/in/game.cpp:135:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr][game->Pc]=' ';
                              ^~
/in/game.cpp:135:40: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr][game->Pc]=' ';
                                        ^~
/in/game.cpp:139:34: error: 'Game {aka struct game}' has no member named 'Pr'
         else if(game->grid[game->Pr+a][game->Pc+b]=='o'){
                                  ^~
/in/game.cpp:139:46: error: 'Game {aka struct game}' has no member named 'Pc'
         else if(game->grid[game->Pr+a][game->Pc+b]=='o'){
                                              ^~
/in/game.cpp:141:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr+a][game->Pc+b]='C';
                              ^~
/in/game.cpp:141:42: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr+a][game->Pc+b]='C';
                                          ^~
/in/game.cpp:142:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr][game->Pc]=' ';
                              ^~
/in/game.cpp:142:40: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr][game->Pc]=' ';
                                        ^~
/in/game.cpp:144:34: error: 'Game {aka struct game}' has no member named 'Pr'
         else if(game->grid[game->Pr+a][game->Pc+b]=='X'){
                                  ^~
/in/game.cpp:144:46: error: 'Game {aka struct game}' has no member named 'Pc'
         else if(game->grid[game->Pr+a][game->Pc+b]=='X'){
                                              ^~
/in/game.cpp:145:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr][game->Pc]=' ';
                              ^~
/in/game.cpp:145:40: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr][game->Pc]=' ';
                                        ^~
/in/game.cpp:146:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr+a][game->Pc+b]='C';
                              ^~
/in/game.cpp:146:42: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr+a][game->Pc+b]='C';
                                          ^~
/in/game.cpp:149:34: error: 'Game {aka struct game}' has no member named 'Pr'
         else if(game->grid[game->Pr+a][game->Pc+b]==' '){
                                  ^~
/in/game.cpp:149:46: error: 'Game {aka struct game}' has no member named 'Pc'
         else if(game->grid[game->Pr+a][game->Pc+b]==' '){
                                              ^~
/in/game.cpp:150:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr][game->Pc]=' ';
                              ^~
/in/game.cpp:150:40: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr][game->Pc]=' ';
                                        ^~
/in/game.cpp:151:30: error: 'Game {aka struct game}' has no member named 'Pr'
             game->grid[game->Pr+a][game->Pc+b]='C';
                              ^~
/in/game.cpp:151:42: error: 'Game {aka struct game}' has no member named 'Pc'
             game->grid[game->Pr+a][game->Pc+b]='C';
                                          ^~
/in/game.cpp:154:34: error: 'Game {aka struct game}' has no member named 'Pr'
         else if(game->grid[game->Pr+a][game->Pc+b]=='#'){
                                  ^~
/in/game.cpp:154:46: error: 'Game {aka struct game}' has no member named 'Pc'
         else if(game->grid[game->Pr+a][game->Pc+b]=='#'){
                                              ^~

Information

Submit By
Type
Submission
Homework
Lab6: Pac-man
Language
C++
Submit At
2023-12-07 22:26:03
Judged At
2023-12-07 22:26:03
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes