F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-16 23:25:54, Gzip enabled