0_0_22716334_26938.cpp:3:1: error: 'usingnamespace' does not name a type
usingnamespace std;
^
0_0_22716334_26938.cpp:6:1: error: 'constint' does not name a type
constint maxn =222222;
^
0_0_22716334_26938.cpp:7:9: error: 'maxn' was not declared in this scope
int MAX[maxn<<2];
^
0_0_22716334_26938.cpp: In function 'void PushUP(int)':
0_0_22716334_26938.cpp:10:2: error: 'MAX' was not declared in this scope
MAX[rt]= max(MAX[rt<<1] , MAX[rt<<1|1]);
^
0_0_22716334_26938.cpp:10:40: error: 'max' was not declared in this scope
MAX[rt]= max(MAX[rt<<1] , MAX[rt<<1|1]);
^
0_0_22716334_26938.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_22716334_26938.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_22716334_26938.cpp: In function 'void build(int, int, int)':
0_0_22716334_26938.cpp:16:15: error: 'MAX' was not declared in this scope
scanf("%d",&MAX[rt]);
^
0_0_22716334_26938.cpp: In function 'void update(int, int, int, int, int)':
0_0_22716334_26938.cpp:28:3: error: 'MAX' was not declared in this scope
MAX[rt]= sc;
^
0_0_22716334_26938.cpp: In function 'int query(int, int, int, int, int)':
0_0_22716334_26938.cpp:42:10: error: 'MAX' was not declared in this scope
return MAX[rt];
^
0_0_22716334_26938.cpp:47:38: error: 'max' was not declared in this scope
ret = max(ret , query(L , R , lson));
^
0_0_22716334_26938.cpp:47:38: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22716334_26938.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_22716334_26938.cpp:49:38: error: 'max' was not declared in this scope
ret = max(ret , query(L , R , rson));
^
0_0_22716334_26938.cpp:49:38: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22716334_26938.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_22716334_26938.cpp: In function 'int main()':
0_0_22716334_26938.cpp:69:2: error: 'return0' was not declared in this scope
return0;
^
|