0_0_21091549_6441.cpp:5:14: error: expected primary-expression before '=' token
#define maxn = 200010;
^
0_0_21091549_6441.cpp:6:8: note: in expansion of macro 'maxn'
int mx[maxn<<2];
^
0_0_21091549_6441.cpp:5:22: error: expected ']' before ';' token
#define maxn = 200010;
^
0_0_21091549_6441.cpp:6:8: note: in expansion of macro 'maxn'
int mx[maxn<<2];
^
0_0_21091549_6441.cpp:6:12: error: expected unqualified-id before '<<' token
int mx[maxn<<2];
^
0_0_21091549_6441.cpp: In function 'void pushup(int)':
0_0_21091549_6441.cpp:8:2: error: 'mx' was not declared in this scope
mx[o] = max(mx[o<<1] , mx[o<<1|1]);
^
0_0_21091549_6441.cpp: In function 'void build(int, int, int)':
0_0_21091549_6441.cpp:12:15: error: 'mx' was not declared in this scope
scanf("%d",&mx[o]);
^
0_0_21091549_6441.cpp: In function 'void update(int, int, int, int, int)':
0_0_21091549_6441.cpp:22:3: error: 'mx' was not declared in this scope
mx[o]=sc;
^
0_0_21091549_6441.cpp: In function 'int query(int, int, int, int, int)':
0_0_21091549_6441.cpp:34:10: error: 'mx' was not declared in this scope
return mx[o];
^
|