0_0_29293420_18852.cpp:10:7: error: 'll' does not name a type
const ll maxn=27000+50;
^
0_0_29293420_18852.cpp:12:6: error: 'maxn' was not declared in this scope
LL a[maxn],b[maxn];//a为原来,b为排序
^
0_0_29293420_18852.cpp:12:14: error: 'maxn' was not declared in this scope
LL a[maxn],b[maxn];//a为原来,b为排序
^
0_0_29293420_18852.cpp:13:6: error: 'maxn' was not declared in this scope
LL c[maxn];//树状数组
^
0_0_29293420_18852.cpp:14:8: error: 'maxn' was not declared in this scope
LL ans[maxn];//结果
^
0_0_29293420_18852.cpp:15:7: error: 'maxn' was not declared in this scope
LL up[maxn],low[maxn];
^
0_0_29293420_18852.cpp:15:17: error: 'maxn' was not declared in this scope
LL up[maxn],low[maxn];
^
0_0_29293420_18852.cpp:21:4: error: 'maxn' was not declared in this scope
}q[maxn];
^
0_0_29293420_18852.cpp:27:1: error: 'll' does not name a type
ll lowbit(ll x)
^
0_0_29293420_18852.cpp:31:1: error: 'll' does not name a type
ll sea(LL x)//寻找大小为x的数在b数组中的下标
^
0_0_29293420_18852.cpp:45:18: error: 'll' has not been declared
void update(LL x,ll add)
^
0_0_29293420_18852.cpp: In function 'void update(LL, int)':
0_0_29293420_18852.cpp:49:9: error: 'c' was not declared in this scope
c[x]+=add;
^
0_0_29293420_18852.cpp:50:20: error: 'lowbit' was not declared in this scope
x+=lowbit(x);
^
0_0_29293420_18852.cpp: In function 'LL Query(LL)':
0_0_29293420_18852.cpp:58:14: error: 'c' was not declared in this scope
ret+=c[x];
^
0_0_29293420_18852.cpp:59:20: error: 'lowbit' was not declared in this scope
x-=lowbit(x);
^
0_0_29293420_18852.cpp: In function 'int main()':
0_0_29293420_18852.cpp:67:9: error: 'll' was not declared in this scope
for(ll i=1;i<=N;i++)
^
0_0_29293420_18852.cpp:67:16: error: 'i' was not declared in this scope
for(ll i=1;i<=N;i++)
^
0_0_29293420_18852.cpp:69:23: error: 'a' was not declared in this scope
scanf("%lld",&a[i]);
^
0_0_29293420_18852.cpp:70:9: error: 'b' was not declared in this scope
b[i]=a[i];
^
0_0_29293420_18852.cpp:72:10: error: 'b' was not declared in this scope
sort(b+1,b+N+1);
^
0_0_29293420_18852.cpp:74:9: error: 'll' was not declared in this scope
for(ll i=1;i<=M;i++)
^
0_0_29293420_18852.cpp:74:16: error: 'i' was not declared in this scope
for(ll i=1;i<=M;i++)
^
0_0_29293420_18852.cpp:76:27: error: 'q' was not declared in this scope
scanf("%lld%lld",&q[i].l,&q[i].r);
^
0_0_29293420_18852.cpp:79:10: error: 'q' was not declared in this scope
sort(q+1,q+M+1,cmp);
^
0_0_29293420_18852.cpp:80:9: error: 'll' was not declared in this scope
for(ll i=1;i<=N;i++)
^
0_0_29293420_18852.cpp:80:16: error: 'i' was not declared in this scope
for(ll i=1;i<=N;i++)
^
0_0_29293420_18852.cpp:82:38: error: 'a' was not declared in this scope
LL x=lower_bound(b+1,b+1+len,a[i]-K)-(b+1);
^
0_0_29293420_18852.cpp:84:9: error: 'up' was not declared in this scope
up[i]=y;//表示a[i]在b数组的上界
^
0_0_29293420_18852.cpp:85:9: error: 'low' was not declared in this scope
low[i]=x;//表示a[i]在b数组的下界
^
0_0_29293420_18852.cpp:90:9: error: 'll' was not declared in this scope
for(ll i=1;i<=M;i++)
^
0_0_29293420_18852.cpp:90:16: error: 'i' was not declared in this scope
for(ll i=1;i<=M;i++)
^
0_0_29293420_18852.cpp:95:16: error: expected ';' before 'xx'
ll xx=Query(up[R+1]);
^
0_0_29293420_18852.cpp:96:16: error: expected ';' before 'yy'
ll yy=Query(low[R+1]);
^
0_0_29293420_18852.cpp:97:18: error: 'xx' was not declared in this scope
ret+=xx-yy;
^
0_0_29293420_18852.cpp:97:21: error: 'yy' was not declared in this scope
ret+=xx-yy;
^
0_0_29293420_18852.cpp:98:16: error: expected ';' before 'loc'
ll loc=sea(a[R+1]);
^
0_0_29293420_18852.cpp:99:20: error: 'loc' was not declared in this scope
update(loc,1);//这个必须放在上面的下面 因为如果先放的话本身的值岂不是算进去了
^
0_0_29293420_18852.cpp:104:24: error: 'a' was not declared in this scope
update(sea(a[R]),-1);//这个必须放在下面的上面 因为你要减去它的影响 自然也不能算本身-本身
^
0_0_29293420_18852.cpp:104:28: error: 'sea' was not declared in this scope
update(sea(a[R]),-1);//这个必须放在下面的上面 因为你要减去它的影响 自然也不能算本身-本身
^
0_0_29293420_18852.cpp:105:24: error: 'up' was not declared in this scope
ret-=Query(up[R])-Query(low[R]);
^
0_0_29293420_18852.cpp:105:37: error: 'low' was not declared in this scope
ret-=Query(up[R])-Query(low[R]);
^
0_0_29293420_18852.cpp:110:24: error: 'a' was not declared in this scope
update(sea(a[L]),-1);
^
0_0_29293420_18852.cpp:110:28: error: 'sea' was not declared in this scope
update(sea(a[L]),-1);
^
0_0_29293420_18852.cpp:111:24: error: 'up' was not declared in this scope
ret-=Query(up[L])-Query(low[L]);
^
0_0_29293420_18852.cpp:111:37: error: 'low' was not declared in this scope
ret-=Query(up[L])-Query(low[L]);
^
0_0_29293420_18852.cpp:116:24: error: 'up' was not declared in this scope
ret+=Query(up[L-1])-Query(low[L-1]);
^
0_0_29293420_18852.cpp:116:39: error: 'low' was not declared in this scope
ret+=Query(up[L-1])-Query(low[L-1]);
^
0_0_29293420_18852.cpp:117:24: error: 'a' was not declared in this scope
update(sea(a[L-1]),1);
^
0_0_29293420_18852.cpp:117:30: error: 'sea' was not declared in this scope
update(sea(a[L-1]),1);
^
0_0_29293420_18852.cpp:120:9: error: 'ans' was not declared in this scope
ans[q[i].num]=ret;
^
0_0_29293420_18852.cpp:122:9: error: 'll' was not declared in this scope
for(ll i=1;i<=M;i++) printf("%lld\n",ans[i]);
^
0_0_29293420_18852.cpp:122:16: error: 'i' was not declared in this scope
for(ll i=1;i<=M;i++) printf("%lld\n",ans[i]);
^
0_0_29293420_18852.cpp:122:42: error: 'ans' was not declared in this scope
for(ll i=1;i<=M;i++) printf("%lld\n",ans[i]);
^
|