大佬们到底是什么神仙错误是我卡了这么久啊QAQ
struct node{
double x,y,dis;
}m[200010];
bool mmp(node m1,node m2)
{
return m1.dis>m2.dis;
}
int main()
{
cin>>n>>p>>q;
kq=p/q;
for(int i=0;i<n;i++)
{
cin>>m[i].x>>m[i].y;
m[i].dis=m[i].y-kq*m[i].x;
}
sort(m,m+n,mmp);//Error
.
.
.
}
error: invalid operands of types 'node [200010]' and 'double' to binary 'operator+'|
是我太菜了还是编译器恨我QwQ