我在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;
}