为啥在洛谷上,我这样为结构体赋值就会 CE:
代码
struct node {
int f = inf;
int tag = 0;
int add = 0;
int ans = 0;
} tr[N << 2];
显示 Nothing is compiled: OUTPUT exceeds.,但本地可过。
但是写构造函数就不会 CE:
struct node {
node():f(inf), tag(0), add(0), ans(0) {}
int f;
int tag;
int add;
int ans;
} tr[N << 2];
搜索无果。