CE求助
  • 板块学术版
  • 楼主_Imaginary_
  • 当前回复1
  • 已保存回复1
  • 发布时间2022/10/7 09:35
  • 上次更新2023/10/27 08:22:53
查看原帖
CE求助
148507
_Imaginary_楼主2022/10/7 09:35

[Error] invalid use of non-static data member 'solve::a'

#include<bits/stdc++.h>
using namespace std;
#define ll long long
struct node{
	int x1,y1,x2,y2;
};
int n,m,k;
class solve{
	node a[100005];
	struct point{
		int y;
		bool flag;//0: zuo, 1: you
		bool operator <(const point& p) const{
			return (flag?a[y].y2:a[y].y1)>(p.flag?a[p.y].y2:a[p.y].y1);
		}
	};
}g1;
int main()
{
	return 0;
}

2022/10/7 09:35
加载中...