0_0_33921414_2742.cpp:20:26: error: 'N' was not declared in this scope
T val[SZ],mn[SZ],sum[N];
^
0_0_33921414_2742.cpp: In constructor 'Treap<T>::Treap()':
0_0_33921414_2742.cpp:30:22: error: 'sum' was not declared in this scope
mn[0] = 1e9, sum[0] = val[0] = 0;
^
0_0_33921414_2742.cpp: In member function 'void Treap<T>::pushup(int)':
0_0_33921414_2742.cpp:35:9: error: 'sum' was not declared in this scope
sum[u] = sum[lc[u]] + sum[rc[u]] + val[u];
^
0_0_33921414_2742.cpp: In member function 'void Treap<T>::insert(int, T)':
0_0_33921414_2742.cpp:58:9: error: 'sum' was not declared in this scope
sum[u]=val[u]=mn[u]=v,sz[u]=1,rnd[u]=rand();
^
0_0_33921414_2742.cpp: In member function 'int Treap<T>::dfs(int*, int, int)':
0_0_33921414_2742.cpp:65:9: error: 'sum' was not declared in this scope
sum[u]=val[u]=mn[u]=a[mid],sz[u]=r-l+1,rnd[u]=rand();
^
0_0_33921414_2742.cpp: In member function 'long long int Treap<T>::perform(int, int)':
0_0_33921414_2742.cpp:121:25: error: 'sum' was not declared in this scope
long long res = sum[r]-sz[r]*1ll*(y-1);
^
|