0_0_32487078_7494.cpp:6:1: error: expected ',' or ';' before 'int'
int a[N], pos[N];
^
0_0_32487078_7494.cpp: In function 'void build(int, int, int)':
0_0_32487078_7494.cpp:14:19: error: 'pos' was not declared in this scope
maxv[o] = pos[l];
^
0_0_32487078_7494.cpp: In function 'int main()':
0_0_32487078_7494.cpp:57:26: error: 'a' was not declared in this scope
scanf("%d", &a[i]);
^
0_0_32487078_7494.cpp:58:13: error: 'pos' was not declared in this scope
pos[a[i]] = i;
^
0_0_32487078_7494.cpp:60:9: error: 'pos' was not declared in this scope
pos[n + 1] = n + 1;
^
0_0_32487078_7494.cpp:75:37: error: 'a' was not declared in this scope
update(1, 1, n + 1, a[x]);
^
|