compilr.comでコードを実行しており、言語としてCを使用しています。私はあなたが在庫を持っていて100ドルから始める簡単なゲームを作ろうとしています。あなたは他のプレイヤーのために密かに仕事をすることでお金を稼ぎます。しかし、「初期化子が無効です」というエラーメッセージが表示されます。これは何ですか?どうすれば修正できますか?これが私のコードです:
#include<stdio.h>
int main()
{
int player_cash[][3] = 100;
int player[3];
int job[][100] = {
"Text me the address of player1",
"I'll donate $100 to the your funds, if you steal the gold from player2 for me"
};
if (player_cash[1] > 5);
do job[0]
else if(player_cash[1]<5);
return 0;
}