悖论
  • 板块灌水区
  • 楼主StillEmpty
  • 当前回复5
  • 已保存回复5
  • 发布时间2021/12/30 17:09
  • 上次更新2023/10/28 13:21:45
查看原帖
悖论
150956
StillEmpty楼主2021/12/30 17:09
struct nd {
	int val, rd, cp, sz;
	nd* ls;
	nd* rs;
	nd(const int& v, const int& r, const int& c, const int& s) {
		val = v;
		rd = r;
		cp = c;
		sz = s;
		ls = empty;
		rs = empty;
	}
};

nd* empty = new nd(0, 0, 0, 0);

毫无疑问会'empty' was not declared in this scope gcc [13, 8]

该如何实现?

2021/12/30 17:09
加载中...