I don't think that program is a very good example.
Some problems:
line 597: y is uninitialized giving unpredictable results to the loop and crashes the program.
line 845: game is never released resulting in a memory leak. There is no reason that game even needs to be dynamically allocated.
General comments:
The use of arrays is poorly thought out (map should be 2d array, not 1d).
Begging for the use of switch statements and constant value arrays.
The console is not a good output device for this kind of game. Better to use a true graphics library such as QT or SFML.
In the original article, LvelMenu does not take any arguments. You're trying to pass an integer to it and the compiler is telling you there is no version of LevelMenu that accepts an integer.