0_0_33616790_12567.cpp:8:7: error: 'll' does not name a type
const ll LINF = 0x3f3f3f3f3f3f3f3f;
^
0_0_33616790_12567.cpp:15:5: error: 'll' does not name a type
ll val;
^
0_0_33616790_12567.cpp: In member function 'bool node::operator<(const node&) const':
0_0_33616790_12567.cpp:17:12: error: 'val' was not declared in this scope
if(val == it.val) return id > it.id;
^
0_0_33616790_12567.cpp:17:22: error: 'const struct node' has no member named 'val'
if(val == it.val) return id > it.id;
^
0_0_33616790_12567.cpp:18:16: error: 'val' was not declared in this scope
return val < it.val;
^
0_0_33616790_12567.cpp:18:25: error: 'const struct node' has no member named 'val'
return val < it.val;
^
0_0_33616790_12567.cpp: At global scope:
0_0_33616790_12567.cpp:24:5: error: 'll' does not name a type
ll maxn;
^
0_0_33616790_12567.cpp: In function 'void build(int, int, int)':
0_0_33616790_12567.cpp:29:11: error: 'struct SegTree' has no member named 'maxn'
t[rt].maxn = -LINF;
^
0_0_33616790_12567.cpp:29:19: error: 'LINF' was not declared in this scope
t[rt].maxn = -LINF;
^
0_0_33616790_12567.cpp: In function 'void push_up(int)':
0_0_33616790_12567.cpp:37:11: error: 'struct SegTree' has no member named 'maxn'
t[rt].maxn = max(t[ls].maxn,t[rs].maxn);
^
0_0_33616790_12567.cpp:37:28: error: 'struct SegTree' has no member named 'maxn'
t[rt].maxn = max(t[ls].maxn,t[rs].maxn);
^
0_0_33616790_12567.cpp:37:39: error: 'struct SegTree' has no member named 'maxn'
t[rt].maxn = max(t[ls].maxn,t[rs].maxn);
^
0_0_33616790_12567.cpp: At global scope:
0_0_33616790_12567.cpp:40:25: error: 'll' has not been declared
void upd(int rt,int pos,ll k){
^
0_0_33616790_12567.cpp: In function 'void upd(int, int, int)':
0_0_33616790_12567.cpp:43:15: error: 'struct SegTree' has no member named 'maxn'
t[rt].maxn = k;
^
0_0_33616790_12567.cpp: At global scope:
0_0_33616790_12567.cpp:52:1: error: 'll' does not name a type
ll query(int rt,int L,int R){
^
0_0_33616790_12567.cpp: In function 'int main()':
0_0_33616790_12567.cpp:70:32: error: 'struct node' has no member named 'val'
scanf("%lld",&a[i].val);
^
0_0_33616790_12567.cpp:78:13: error: 'll' was not declared in this scope
ll tmp = query(1,L,R);
^
0_0_33616790_12567.cpp:79:16: error: 'tmp' was not declared in this scope
if(tmp == -LINF){//·Ç·¨×´Ì¬
^
0_0_33616790_12567.cpp:79:24: error: 'LINF' was not declared in this scope
if(tmp == -LINF){//·Ç·¨×´Ì¬
^
0_0_33616790_12567.cpp:84:72: error: 'struct node' has no member named 'val'
if(a[i].id == n) {printf("Case #%d: %lld\n",++cas,a[i].val * a[i].val + tmp);break;}
^
0_0_33616790_12567.cpp:84:83: error: 'struct node' has no member named 'val'
if(a[i].id == n) {printf("Case #%d: %lld\n",++cas,a[i].val * a[i].val + tmp);break;}
^
0_0_33616790_12567.cpp:86:32: error: 'struct node' has no member named 'val'
upd(1,a[i].id,a[i].val * a[i].val + tmp - a[i].val);
^
0_0_33616790_12567.cpp:86:43: error: 'struct node' has no member named 'val'
upd(1,a[i].id,a[i].val * a[i].val + tmp - a[i].val);
^
0_0_33616790_12567.cpp:86:49: error: 'tmp' was not declared in this scope
upd(1,a[i].id,a[i].val * a[i].val + tmp - a[i].val);
^
0_0_33616790_12567.cpp:86:60: error: 'struct node' has no member named 'val'
upd(1,a[i].id,a[i].val * a[i].val + tmp - a[i].val);
^
|