0_0_14955258_23258.cpp:94:11: error: redefinition of 'const int maxn'
const int maxn = 100005;
^
0_0_14955258_23258.cpp:6:11: note: 'const int maxn' previously defined here
const int maxn = 100005;
^
0_0_14955258_23258.cpp:95:11: error: redefinition of 'int a [100005]'
int a[maxn],b[maxn];
^
0_0_14955258_23258.cpp:7:5: note: 'int a [100005]' previously declared here
int a[maxn],b[maxn];
^
0_0_14955258_23258.cpp:95:19: error: redefinition of 'int b [100005]'
int a[maxn],b[maxn];
^
0_0_14955258_23258.cpp:7:13: note: 'int b [100005]' previously declared here
int a[maxn],b[maxn];
^
0_0_14955258_23258.cpp:96:16: error: redefinition of 'int sum [400020]'
int sum[maxn<<2];
^
0_0_14955258_23258.cpp:8:5: note: 'int sum [400020]' previously declared here
int sum[maxn<<2];
^
0_0_14955258_23258.cpp: In function 'void pushup(int)':
0_0_14955258_23258.cpp:97:6: error: redefinition of 'void pushup(int)'
void pushup(int rt){
^
0_0_14955258_23258.cpp:9:6: note: 'void pushup(int)' previously defined here
void pushup(int rt){
^
0_0_14955258_23258.cpp: In function 'void build(int, int, int)':
0_0_14955258_23258.cpp:100:6: error: redefinition of 'void build(int, int, int)'
void build(int l,int r,int rt){
^
0_0_14955258_23258.cpp:12:6: note: 'void build(int, int, int)' previously defined here
void build(int l,int r,int rt){
^
0_0_14955258_23258.cpp: In function 'void update(int, int, int, int, int)':
0_0_14955258_23258.cpp:106:6: error: redefinition of 'void update(int, int, int, int, int)'
void update(int id,int v,int l,int r,int rt){
^
0_0_14955258_23258.cpp:18:6: note: 'void update(int, int, int, int, int)' previously defined here
void update(int id,int v,int l,int r,int rt){
^
0_0_14955258_23258.cpp: In function 'int query(int, int, int, int, int)':
0_0_14955258_23258.cpp:115:5: error: redefinition of 'int query(int, int, int, int, int)'
int query(int L,int R,int l,int r,int rt){
^
0_0_14955258_23258.cpp:27:5: note: 'int query(int, int, int, int, int)' previously defined here
int query(int L,int R,int l,int r,int rt){
^
0_0_14955258_23258.cpp: At global scope:
0_0_14955258_23258.cpp:125:15: error: redefinition of 'int ansl1 [100005]'
int ansl1[maxn],ansr[maxn],ansl2[maxn];
^
0_0_14955258_23258.cpp:37:5: note: 'int ansl1 [100005]' previously declared here
int ansl1[maxn],ansr[maxn],ansl2[maxn];
^
0_0_14955258_23258.cpp:125:26: error: redefinition of 'int ansr [100005]'
int ansl1[maxn],ansr[maxn],ansl2[maxn];
^
0_0_14955258_23258.cpp:37:17: note: 'int ansr [100005]' previously declared here
int ansl1[maxn],ansr[maxn],ansl2[maxn];
^
0_0_14955258_23258.cpp:125:38: error: redefinition of 'int ansl2 [100005]'
int ansl1[maxn],ansr[maxn],ansl2[maxn];
^
0_0_14955258_23258.cpp:37:28: note: 'int ansl2 [100005]' previously declared here
int ansl1[maxn],ansr[maxn],ansl2[maxn];
^
0_0_14955258_23258.cpp: In function 'int main()':
0_0_14955258_23258.cpp:126:5: error: redefinition of 'int main()'
int main(){
^
0_0_14955258_23258.cpp:38:5: note: 'int main()' previously defined here
int main(){
^
|