0_0_14250487_24209.cpp:3:1: error: 'usingnamespace' does not name a type
usingnamespace std;
^
0_0_14250487_24209.cpp:7:1: error: 'constint' does not name a type
constint maxn =222222;
^
0_0_14250487_24209.cpp:8:9: error: 'maxn' was not declared in this scope
int MAX[maxn<<2];
^
0_0_14250487_24209.cpp: In function 'void PushUP(int)':
0_0_14250487_24209.cpp:10:2: error: 'MAX' was not declared in this scope
MAX[rt]= max(MAX[rt<<1] , MAX[rt<<1|1]);
^
0_0_14250487_24209.cpp:10:40: error: 'max' was not declared in this scope
MAX[rt]= max(MAX[rt<<1] , MAX[rt<<1|1]);
^
0_0_14250487_24209.cpp:10:40: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14250487_24209.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_14250487_24209.cpp: In function 'void build(int, int, int)':
0_0_14250487_24209.cpp:14:15: error: 'MAX' was not declared in this scope
scanf("%d",&MAX[rt]);
^
0_0_14250487_24209.cpp: In function 'void update(int, int, int, int, int)':
0_0_14250487_24209.cpp:24:3: error: 'MAX' was not declared in this scope
MAX[rt]= sc;
^
0_0_14250487_24209.cpp: In function 'int query(int, int, int, int, int)':
0_0_14250487_24209.cpp:34:10: error: 'MAX' was not declared in this scope
return MAX[rt];
^
0_0_14250487_24209.cpp:38:48: error: 'max' was not declared in this scope
if(L <= m) ret = max(ret , query(L , R , lson));
^
0_0_14250487_24209.cpp:38:48: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14250487_24209.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_14250487_24209.cpp:39:47: error: 'max' was not declared in this scope
if(R > m) ret = max(ret , query(L , R , rson));
^
0_0_14250487_24209.cpp:39:47: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14250487_24209.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_14250487_24209.cpp: In function 'int main()':
0_0_14250487_24209.cpp:54:2: error: 'return0' was not declared in this scope
return0;
^
|