0_0_15966152_5786.cpp:114:11: error: redefinition of 'const int inf'
const int inf = 1000010;
^
0_0_15966152_5786.cpp:23:11: note: 'const int inf' previously defined here
const int inf = 1000010;
^
0_0_15966152_5786.cpp:115:11: error: redefinition of 'const int maxn'
const int maxn = 300030;
^
0_0_15966152_5786.cpp:24:11: note: 'const int maxn' previously defined here
const int maxn = 300030;
^
0_0_15966152_5786.cpp:117:5: error: redefinition of 'int n'
int n,m;
^
0_0_15966152_5786.cpp:26:5: note: 'int n' previously declared here
int n,m;
^
0_0_15966152_5786.cpp:117:7: error: redefinition of 'int m'
int n,m;
^
0_0_15966152_5786.cpp:26:7: note: 'int m' previously declared here
int n,m;
^
0_0_15966152_5786.cpp:119:8: error: redefinition of 'struct Node'
struct Node{
^
0_0_15966152_5786.cpp:28:8: error: previous definition of 'struct Node'
struct Node{
^
0_0_15966152_5786.cpp:128:15: error: invalid type in declaration before ';' token
}node[maxn<<1];
^
0_0_15966152_5786.cpp:128:15: error: conflicting declaration 'int node [600060]'
0_0_15966152_5786.cpp:37:2: note: previous declaration as 'Node node [600060]'
}node[maxn<<1];
^
0_0_15966152_5786.cpp:130:10: error: redefinition of 'int c [1000010]'
int c[inf];
^
0_0_15966152_5786.cpp:39:5: note: 'int c [1000010]' previously declared here
int c[inf];
^
0_0_15966152_5786.cpp: In function 'int lowbit(int)':
0_0_15966152_5786.cpp:132:5: error: redefinition of 'int lowbit(int)'
int lowbit(int x) {return x&-x;}
^
0_0_15966152_5786.cpp:41:5: note: 'int lowbit(int)' previously defined here
int lowbit(int x) {return x&-x;}
^
0_0_15966152_5786.cpp: In function 'void modify(int, int)':
0_0_15966152_5786.cpp:134:6: error: redefinition of 'void modify(int, int)'
void modify(int x,int val){
^
0_0_15966152_5786.cpp:43:6: note: 'void modify(int, int)' previously defined here
void modify(int x,int val){
^
0_0_15966152_5786.cpp: In function 'int query(int)':
0_0_15966152_5786.cpp:138:5: error: redefinition of 'int query(int)'
int query(int x){
^
0_0_15966152_5786.cpp:47:5: note: 'int query(int)' previously defined here
int query(int x){
^
0_0_15966152_5786.cpp: At global scope:
0_0_15966152_5786.cpp:144:13: error: redefinition of 'int ans [300030]'
int ans[maxn];
^
0_0_15966152_5786.cpp:53:5: note: 'int ans [300030]' previously declared here
int ans[maxn];
^
0_0_15966152_5786.cpp: In function 'int main()':
0_0_15966152_5786.cpp:146:5: error: redefinition of 'int main()'
int main(){
^
0_0_15966152_5786.cpp:55:5: note: 'int main()' previously defined here
int main(){
^
|