0_0_35190882_18676.cpp:10:9: error: 'nn' was not declared in this scope
int val[nn];
^
0_0_35190882_18676.cpp:11:9: error: 'nn' was not declared in this scope
int ans[nn];
^
0_0_35190882_18676.cpp:15:4: error: 'nn' was not declared in this scope
}t[nn<<2];
^
0_0_35190882_18676.cpp: In function 'void build(int, int, int)':
0_0_35190882_18676.cpp:20:2: error: 't' was not declared in this scope
t[rt].maxx = 0;
^
0_0_35190882_18676.cpp: In function 'void pushdown(int)':
0_0_35190882_18676.cpp:29:6: error: 't' was not declared in this scope
if (t[rt].maxx)
^
0_0_35190882_18676.cpp: In function 'void updata(int, int, int, int, int, int)':
0_0_35190882_18676.cpp:45:3: error: 't' was not declared in this scope
t[rt].maxx = max(t[rt].maxx, val);
^
0_0_35190882_18676.cpp: In function 'void query(int, int, int, int)':
0_0_35190882_18676.cpp:59:12: error: 't' was not declared in this scope
ansmin = t[rt].minn;
^
0_0_35190882_18676.cpp: In function 'int main()':
0_0_35190882_18676.cpp:77:44: error: 'val' was not declared in this scope
for (int i = 1; i < n; i++) scanf("%d", &val[i]);
^
0_0_35190882_18676.cpp:78:10: error: 'ans' was not declared in this scope
memset(ans, 0, sizeof(ans));
^
0_0_35190882_18676.cpp:91:19: error: 'val' was not declared in this scope
ans[ansmin] += val[i];
^
|