0_0_15579922_30764.cpp:4:1: error: 'll' does not name a type
ll sum[N];
^
0_0_15579922_30764.cpp: In function 'void PushUp(int)':
0_0_15579922_30764.cpp:12:36: error: 'max' was not declared in this scope
F[rt]=max( F[rt<<1],F[rt<<1|1] );
^
0_0_15579922_30764.cpp: In function 'void build(int, int, int)':
0_0_15579922_30764.cpp:20:11: error: 'lson' was not declared in this scope
build(lson);
^
0_0_15579922_30764.cpp:21:11: error: 'rson' was not declared in this scope
build(rson);
^
0_0_15579922_30764.cpp: In function 'int query(int, int, int, int, int)':
0_0_15579922_30764.cpp:30:37: error: 'lson' was not declared in this scope
if(L<=m) ret=max( ret,query(L,R,lson) );
^
0_0_15579922_30764.cpp:30:43: error: 'max' was not declared in this scope
if(L<=m) ret=max( ret,query(L,R,lson) );
^
0_0_15579922_30764.cpp:31:36: error: 'rson' was not declared in this scope
if(R>m) ret=max( ret,query(L,R,rson) );
^
0_0_15579922_30764.cpp:31:42: error: 'max' was not declared in this scope
if(R>m) ret=max( ret,query(L,R,rson) );
^
0_0_15579922_30764.cpp: In function 'int main()':
0_0_15579922_30764.cpp:39:29: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&m)!=EOF){
^
0_0_15579922_30764.cpp:39:32: error: 'EOF' was not declared in this scope
while(scanf("%d%d",&n,&m)!=EOF){
^
0_0_15579922_30764.cpp:40:9: error: 'sum' was not declared in this scope
sum[0]=0;
^
0_0_15579922_30764.cpp:41:13: error: 'i' was not declared in this scope
rep(i,1,n){
^
0_0_15579922_30764.cpp:41:18: error: 'rep' was not declared in this scope
rep(i,1,n){
^
0_0_15579922_30764.cpp:45:22: error: 'mem' was not declared in this scope
mem(lastPos,0);
^
0_0_15579922_30764.cpp:55:13: error: 'll' was not declared in this scope
ll temp=(ll)1*(R-L+2)*(R-L+1)/2;
^
0_0_15579922_30764.cpp:56:37: error: 'temp' was not declared in this scope
if( ((sum[R]-sum[L-1])==temp)&&query(L,R,1,n,1)<L ){
^
0_0_15579922_30764.cpp:57:27: error: 'puts' was not declared in this scope
puts("YES");
^
0_0_15579922_30764.cpp:60:26: error: 'puts' was not declared in this scope
puts("NO");
^
|