void add(int x,int y,int color,int k){
for(;x<=n;x+=x&(-x)){
for(;y<=m;y+=y&(-y))c[x][y][color]+=k;
}
return;
}
int check(int x,int y,int color){
int res=0;
for(;x;x-=x&(-x)){
for(;y;y-=y&(-y))res+=c[x][y][color];
}
return res;
}
rt
二维树状数组,求注释版和非注释版有什么区别,为什么非注释版会出错