求解下面程序错误的地方
#include<stdio.h>#include <conio.h>
main()
{
int player=0;
int winer=0;
int choice=0;
int hang=0;
int lie=0;
int i=0;
int line=0;
char qipan[3][3]={
{'1','2','3'},
{'4','5','6'},
{'7','8','9'}
};
for(i=0;i<9 && winer==0;i++ )
{
printf("\n\n");
printf("-------\n");
printf("|%c|%c|%c|\n",qipan[0][0],qipan[0][1],qipan[0][2]);
printf("+-+-+-+\n");
printf("|%c|%c|%c|\n",qipan[1][0],qipan[1][1],qipan[1][2]);
printf("+-+-+-+\n");
printf("|%c|%c|%c|\n",qipan[2][0],qipan[2][1],qipan[2][2]);
printf("-------\n");
player=i%2+1;
do
{
printf("\n玩家:%d,请确定要下的位子的数字"
"%c",player,(player==1)?'x':'o');
scanf("%d",choice);
hang=--choice/3;
lie=choice%3;
}
while(choice<0||choice>9||qipan[hang][lie]>'9');
qipan[hang][lie]=(player==1)?'x':'o';
/**/
if(qipan[0][0]==qipan[1][1]&&qipan[0][0]==qipan[2][2]||
qipan[0][2]==qipan[1][1]&&qipan[0][0]==qipan[2][0])
winer=player;
else
for(line=0;line<=2;line ++)
if((qipan[line][0]==qipan[line][1]&&qipan[line][0]qipan[line][2])||
(qipan[0][line]==qipan[1][line]&&qipan[0][line]==qipan[2][line]))
winer=player;
}
printf("-------\n");
printf("|%c|%c|%c|\n",qipan[0][0],qipan[0][1],qipan[0][2]);
printf("+-+-+-+\n");
printf("|%c|%c|%c|\n",qipan[1][0],qipan[1][1],qipan[1][2]);
printf("+-+-+-+\n");
printf("|%c|%c|%c|\n",qipan[2][0],qipan[2][1],qipan[2][2]);
printf("-------\n");
if(winer==0)
printf("平局");
else
printf("恭喜!玩家%c,你赢了!",winer);
return 0;
}