求解 :在最后为什么输出的整形数字是-858993460,,应该不是溢出错误
/*判断三点是否在同一半平面*/#include <iostream>
using namespace std;
int main()
{
int x,y ,a,b,c,d;
int count1=0;
int count2=0;
int X[3],Y[3],M[3],N[3];
cout<<"请输入直线的三个参数值:";
cin>>a>> b >>c;
for(int i=0;i<3;i++)
{
cout<<"请输入坐标值:";
cin>>x>>y;
d=a*x+y*b;
int m=0,n=0;
if(d>c)
{
X[m++]=x;Y[m++]=y; count1++;
}
if(d<c)
{
M[m++]=x;N[m++]=y;count2++;
}
}
if((count1>2)||(count2>2))
{cout<<"三点在同一半平面"<<endl;
for(int i=0;i<3;i++)
cout<<"("<<X[i]<<","<<Y[i]<<")"<<endl;}
if((count1==2)&(count2==1))
{cout<<"1.在同一半平面的是:"<<"\t";
for(int i=0;i<2;i++)
cout<<"("<<X[i]<<","<<Y[i]<<")"<<endl;}
if((count1==1)&(count2==2))
{cout<<"2.在同一半平面的是:"<<"\t";
for(int i=0;i<2;i++)
cout<<"("<<M[i]<<","<<N[i]<<")"<<endl;}
return 0;
}