I am trying to program a game. In this game the user is supposed to enter the number of players and the amount of fields this game has. I tried to use an array to keep track of the score of all players. Therefore I did int score[abplayers]
, so there are different scores for every player. The problem is that when I try to define all scores to 0. I tried with 0.0, but I get
error: variable-sized object may not be initialized.
What did I do wrong?