0_0_19698910_11351.cpp:6:20: error: expected ']' before ';' token
#define MAX 1000000;
^
0_0_19698910_11351.cpp:7:12: note: in expansion of macro 'MAX'
int source[MAX] = {0};
^
0_0_19698910_11351.cpp:7:15: error: expected unqualified-id before ']' token
int source[MAX] = {0};
^
0_0_19698910_11351.cpp: In function 'void BuildTree(int, int, int)':
0_0_19698910_11351.cpp:18:15: error: 'source' was not declared in this scope
scanf("%d",&source[i]);
^
0_0_19698910_11351.cpp:25:2: error: 'source' was not declared in this scope
source[i] = maxx(source[i<<1],source[i<<1|1]);
^
0_0_19698910_11351.cpp: In function 'int query(int, int, int, int, int)':
0_0_19698910_11351.cpp:31:10: error: 'source' was not declared in this scope
return source[i];
^
0_0_19698910_11351.cpp: In function 'void update(int, int, int, int, int)':
0_0_19698910_11351.cpp:50:3: error: 'source' was not declared in this scope
source[i] = b;
^
0_0_19698910_11351.cpp:62:2: error: 'source' was not declared in this scope
source[i] = maxx(source[i<<1],source[i<<1|1]);
^
|