0_0_33766218_26209.cpp:58:5: error: redefinition of 'int n'
int n, d;
^
0_0_33766218_26209.cpp:3:5: note: 'int n' previously declared here
int n, d;
^
0_0_33766218_26209.cpp:58:8: error: redefinition of 'int d'
int n, d;
^
0_0_33766218_26209.cpp:3:8: note: 'int d' previously declared here
int n, d;
^
0_0_33766218_26209.cpp:59:11: error: redefinition of 'const int N'
const int N = 1e5 + 5;
^
0_0_33766218_26209.cpp:4:11: note: 'const int N' previously defined here
const int N = 1e5 + 5;
^
0_0_33766218_26209.cpp:60:8: error: redefinition of 'int a [100005]'
int a[N], f[N];
^
0_0_33766218_26209.cpp:5:5: note: 'int a [100005]' previously declared here
int a[N], f[N];
^
0_0_33766218_26209.cpp:60:14: error: redefinition of 'int f [100005]'
int a[N], f[N];
^
0_0_33766218_26209.cpp:5:11: note: 'int f [100005]' previously declared here
int a[N], f[N];
^
0_0_33766218_26209.cpp:61:8: error: redefinition of 'struct Tree'
struct Tree{
^
0_0_33766218_26209.cpp:6:8: error: previous definition of 'struct Tree'
struct Tree{
^
0_0_33766218_26209.cpp:66:12: error: invalid type in declaration before ';' token
}tree[N<<2];
^
0_0_33766218_26209.cpp:66:12: error: conflicting declaration 'int tree [400020]'
0_0_33766218_26209.cpp:11:2: note: previous declaration as 'Tree tree [400020]'
}tree[N<<2];
^
0_0_33766218_26209.cpp: In function 'void build(int, int, int)':
0_0_33766218_26209.cpp:67:6: error: redefinition of 'void build(int, int, int)'
void build(int p, int l, int r) {
^
0_0_33766218_26209.cpp:12:6: note: 'void build(int, int, int)' previously defined here
void build(int p, int l, int r) {
^
0_0_33766218_26209.cpp: In function 'void update(int, int, int)':
0_0_33766218_26209.cpp:74:6: error: redefinition of 'void update(int, int, int)'
void update(int p, int x, int v) {
^
0_0_33766218_26209.cpp:19:6: note: 'void update(int, int, int)' previously defined here
void update(int p, int x, int v) {
^
0_0_33766218_26209.cpp: In function 'int ask(int, int, int)':
0_0_33766218_26209.cpp:84:5: error: redefinition of 'int ask(int, int, int)'
int ask(int p, int l, int r) {
^
0_0_33766218_26209.cpp:29:5: note: 'int ask(int, int, int)' previously defined here
int ask(int p, int l, int r) {
^
0_0_33766218_26209.cpp: In function 'int main()':
0_0_33766218_26209.cpp:92:5: error: redefinition of 'int main()'
int main() {
^
0_0_33766218_26209.cpp:37:5: note: 'int main()' previously defined here
int main() {
^
|