0_0_30646027_20929.cpp:60:11: error: redefinition of 'const int maxn'
const int maxn = 1e5 + 5;
^
0_0_30646027_20929.cpp:4:11: note: 'const int maxn' previously defined here
const int maxn = 1e5 + 5;
^
0_0_30646027_20929.cpp:61:11: error: redefinition of 'const int maxm'
const int maxm = 1e6 + 5;
^
0_0_30646027_20929.cpp:5:11: note: 'const int maxm' previously defined here
const int maxm = 1e6 + 5;
^
0_0_30646027_20929.cpp:62:5: error: redefinition of 'int n'
int n, m, cas;
^
0_0_30646027_20929.cpp:6:5: note: 'int n' previously declared here
int n, m, cas;
^
0_0_30646027_20929.cpp:62:8: error: redefinition of 'int m'
int n, m, cas;
^
0_0_30646027_20929.cpp:6:8: note: 'int m' previously declared here
int n, m, cas;
^
0_0_30646027_20929.cpp:62:11: error: redefinition of 'int cas'
int n, m, cas;
^
0_0_30646027_20929.cpp:6:11: note: 'int cas' previously declared here
int n, m, cas;
^
0_0_30646027_20929.cpp:63:8: error: redefinition of 'struct node'
struct node {
^
0_0_30646027_20929.cpp:7:8: error: previous definition of 'struct node'
struct node {
^
0_0_30646027_20929.cpp:68:10: error: invalid type in declaration before ';' token
} q[maxn];
^
0_0_30646027_20929.cpp:68:10: error: conflicting declaration 'int q [100005]'
0_0_30646027_20929.cpp:12:3: note: previous declaration as 'node q [100005]'
} q[maxn];
^
0_0_30646027_20929.cpp:69:11: error: redefinition of 'int a [100005]'
int a[maxn];
^
0_0_30646027_20929.cpp:13:5: note: 'int a [100005]' previously declared here
int a[maxn];
^
0_0_30646027_20929.cpp:71:19: error: redefinition of 'std::vector<int> v [100005]'
vector<int> v[maxn];
^
0_0_30646027_20929.cpp:15:13: note: 'std::vector<int> v [100005]' previously declared here
vector<int> v[maxn];
^
0_0_30646027_20929.cpp:72:13: error: redefinition of 'int vis [100005]'
int vis[maxn], ans[maxn];
^
0_0_30646027_20929.cpp:16:5: note: 'int vis [100005]' previously declared here
int vis[maxn], ans[maxn];
^
0_0_30646027_20929.cpp:72:24: error: redefinition of 'int ans [100005]'
int vis[maxn], ans[maxn];
^
0_0_30646027_20929.cpp:16:16: note: 'int ans [100005]' previously declared here
int vis[maxn], ans[maxn];
^
0_0_30646027_20929.cpp:73:19: error: redefinition of 'int tree [400020]'
int tree[maxn << 2];
^
0_0_30646027_20929.cpp:17:5: note: 'int tree [400020]' previously declared here
int tree[maxn << 2];
^
0_0_30646027_20929.cpp: In function 'int push_up(int)':
0_0_30646027_20929.cpp:75:5: error: redefinition of 'int push_up(int)'
int push_up(int rt) {
^
0_0_30646027_20929.cpp:19:5: note: 'int push_up(int)' previously defined here
int push_up(int rt) {
^
0_0_30646027_20929.cpp: In function 'void build(int, int, int)':
0_0_30646027_20929.cpp:79:6: error: redefinition of 'void build(int, int, int)'
void build(int l, int r, int rt) {
^
0_0_30646027_20929.cpp:23:6: note: 'void build(int, int, int)' previously defined here
void build(int l, int r, int rt) {
^
0_0_30646027_20929.cpp: In function 'void updata(int, int, int, int, int)':
0_0_30646027_20929.cpp:87:6: error: redefinition of 'void updata(int, int, int, int, int)'
void updata(int L, int l, int r, int rt, int val) {
^
0_0_30646027_20929.cpp:30:6: note: 'void updata(int, int, int, int, int)' previously defined here
void updata(int L, int l, int r, int rt, int val) {
^
0_0_30646027_20929.cpp: In function 'int query(int, int, int, int, int)':
0_0_30646027_20929.cpp:100: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_30646027_20929.cpp:41: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_30646027_20929.cpp: In function 'void init()':
0_0_30646027_20929.cpp:112:6: error: redefinition of 'void init()'
void init() {
^
0_0_30646027_20929.cpp:51:6: note: 'void init()' previously defined here
void init() {
^
|