0_0_34738502_18329.cpp:104:14: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
int Sum[Max<<2];
^
0_0_34738502_18329.cpp:105:10: error: size of array 'A' has non-integral type 'double'
int A[Max] , n ;
^
0_0_34738502_18329.cpp: In function 'void PushUp(int)':
0_0_34738502_18329.cpp:109:5: error: 'Sum' was not declared in this scope
Sum[r] = max(Sum[r<<1] , Sum[r<<1|1 ]);
^
0_0_34738502_18329.cpp: In function 'void Build(int, int, int)':
0_0_34738502_18329.cpp:116:9: error: 'Sum' was not declared in this scope
Sum[rt] = A[L];
^
0_0_34738502_18329.cpp: In function 'void Update(int, int, int, int, int)':
0_0_34738502_18329.cpp:131:9: error: 'Sum' was not declared in this scope
Sum[rt] = C ;
^
0_0_34738502_18329.cpp: In function 'int Queue(int, int, int, int, int)':
0_0_34738502_18329.cpp:145:33: error: 'Sum' was not declared in this scope
if (l >=L && r <=R ) return Sum[rt];
^
|