/in/game.cpp: In function 'bool IsValidPos(game, int, int)':
/in/game.cpp:67:30: error: expected primary-expression before '->' token
return r >= 0 && r < game->rows && c >= 0 && c < game->columns;
^~
/in/game.cpp:67:58: error: expected primary-expression before '->' token
return r >= 0 && r < game->rows && c >= 0 && c < game->columns;
^~
/in/game.cpp: In function 'bool IsPacmanPresent(game)':
/in/game.cpp:114:29: error: expected primary-expression before '->' token
for (int i = 0; i < game->rows; i++) {
^~
/in/game.cpp:115:33: error: expected primary-expression before '->' token
for (int j = 0; j < game->columns; j++) {
^~
/in/game.cpp:116:21: error: expected primary-expression before '->' token
if (game->grid[i][j] == 'C') {
^~
/in/game.cpp: In function 'bool AddPacman(Game*, int, int)':
/in/game.cpp:126:30: error: expected primary-expression before '*' token
if (IsPacmanPresent(Game *game) || game->grid[r][c] != ' ') {
^
/in/game.cpp: In function 'void CheckWinCondition(Game*)':
/in/game.cpp:150:22: error: expected primary-expression before ')' token
switch (direction) {
^
/in/game.cpp:197:61: error: a function-definition is not allowed here before '{' token
bool AddGhost(Game *game, int r, int c, Direction direction){
^
/in/game.cpp:236:28: error: a function-definition is not allowed here before '{' token
void MoveGhosts(Game *game){
^
/in/game.cpp:342:42: error: a function-definition is not allowed here before '{' token
bool AddCapsule(Game *game, int r, int c){
^
/in/game.cpp:367:26: error: a function-definition is not allowed here before '{' token
void EndGame(Game *game) {
^
/in/game.cpp:383:1: error: expected '}' at end of input
}
^