0_0_29474275_12190\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_29474275_12190\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
^
0_0_29474275_12190\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_29474275_12190\Main.java:3: 错误: 非法字符: '#'
#define ll long long
^
0_0_29474275_12190\Main.java:5: 错误: 需要class, interface或enum
int ch[N*30][2],tot,root[N],n,m;
^
0_0_29474275_12190\Main.java:6: 错误: 需要class, interface或enum
ll sum[N*30],tag[N*30],a[N];
^
0_0_29474275_12190\Main.java:7: 错误: 非法字符: '#'
#define ls ch[now][0]
^
0_0_29474275_12190\Main.java:7: 错误: 需要class, interface或enum
#define ls ch[now][0]
^
0_0_29474275_12190\Main.java:8: 错误: 非法字符: '#'
#define rs ch[now][1]
^
0_0_29474275_12190\Main.java:12: 错误: 需要class, interface或enum
ls=rs=sum[now]=tag[now]=0;
^
0_0_29474275_12190\Main.java:13: 错误: 需要class, interface或enum
if(l==r){sum[now]=a[l];return;}
^
0_0_29474275_12190\Main.java:13: 错误: 需要class, interface或enum
if(l==r){sum[now]=a[l];return;}
^
0_0_29474275_12190\Main.java:13: 错误: 需要class, interface或enum
if(l==r){sum[now]=a[l];return;}
^
0_0_29474275_12190\Main.java:15: 错误: 需要class, interface或enum
build(ls,l,mid),build(rs,mid+1,r);
^
0_0_29474275_12190\Main.java:16: 错误: 需要class, interface或enum
sum[now]=sum[ls]+sum[rs];
^
0_0_29474275_12190\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:21: 错误: 需要class, interface或enum
ls=ch[las][0],rs=ch[las][1];
^
0_0_29474275_12190\Main.java:22: 错误: 需要class, interface或enum
if(L==l&&R==r)
^
0_0_29474275_12190\Main.java:25: 错误: 需要class, interface或enum
sum[now]=sum[las]+d*(R+1-L);
^
0_0_29474275_12190\Main.java:26: 错误: 需要class, interface或enum
ls=ch[las][0],rs=ch[las][1];
^
0_0_29474275_12190\Main.java:27: 错误: 需要class, interface或enum
return;
^
0_0_29474275_12190\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:30: 错误: 需要class, interface或enum
if(r<=Mid) change(ch[las][0],ls,L,Mid,l,r,d);
^
0_0_29474275_12190\Main.java:31: 错误: 需要class, interface或enum
else if(l>Mid) change(ch[las][1],rs,Mid+1,R,l,r,d);
^
0_0_29474275_12190\Main.java:32: 错误: 需要class, interface或enum
else change(ch[las][0],ls,L,Mid,l,Mid,d),change(ch[las][1],rs,Mid+1,R,Mid+1,r,d);
^
0_0_29474275_12190\Main.java:33: 错误: 需要class, interface或enum
tag[now]=tag[las];
^
0_0_29474275_12190\Main.java:34: 错误: 需要class, interface或enum
sum[now]=sum[ls]+sum[rs]+tag[now]*(R+1-L);
^
0_0_29474275_12190\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:39: 错误: 需要class, interface或enum
if(l==L&&r==R) return sum[now];
^
0_0_29474275_12190\Main.java:40: 错误: 需要class, interface或enum
int Mid=L+R>>1;ll delta=tag[now]*(r+1-l);
^
0_0_29474275_12190\Main.java:40: 错误: 需要class, interface或enum
int Mid=L+R>>1;ll delta=tag[now]*(r+1-l);
^
0_0_29474275_12190\Main.java:41: 错误: 需要class, interface或enum
if(r<=Mid) return query(ls,L,Mid,l,r)+delta;
^
0_0_29474275_12190\Main.java:42: 错误: 需要class, interface或enum
else if(l>Mid) return query(rs,Mid+1,R,l,r)+delta;
^
0_0_29474275_12190\Main.java:43: 错误: 需要class, interface或enum
else return query(ls,L,Mid,l,Mid)+query(rs,Mid+1,R,Mid+1,r)+delta;
^
0_0_29474275_12190\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:47: 错误: 需要class, interface或enum
tot=0;int t=0;
^
0_0_29474275_12190\Main.java:48: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) scanf("%lld",a+i);
^
0_0_29474275_12190\Main.java:48: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) scanf("%lld",a+i);
^
0_0_29474275_12190\Main.java:48: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++) scanf("%lld",a+i);
^
0_0_29474275_12190\Main.java:49: 错误: 需要class, interface或enum
build(root[0],1,n);
^
0_0_29474275_12190\Main.java:50: 错误: 需要class, interface或enum
char op[4];ll d;
^
0_0_29474275_12190\Main.java:50: 错误: 需要class, interface或enum
char op[4];ll d;
^
0_0_29474275_12190\Main.java:51: 错误: 需要class, interface或enum
for(int l,r,k,i=1;i<=m;i++)
^
0_0_29474275_12190\Main.java:51: 错误: 需要class, interface或enum
for(int l,r,k,i=1;i<=m;i++)
^
0_0_29474275_12190\Main.java:51: 错误: 需要class, interface或enum
for(int l,r,k,i=1;i<=m;i++)
^
0_0_29474275_12190\Main.java:54: 错误: 需要class, interface或enum
if(op[0]=='C')
^
0_0_29474275_12190\Main.java:56: 错误: 需要class, interface或enum
scanf("%d%d%lld",&l,&r,&d);++t;
^
0_0_29474275_12190\Main.java:57: 错误: 需要class, interface或enum
change(root[t-1],root[t],1,n,l,r,d);
^
0_0_29474275_12190\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:62: 错误: 需要class, interface或enum
if(op[0]=='Q') k=t;
^
0_0_29474275_12190\Main.java:63: 错误: 需要class, interface或enum
else scanf("%d",&k);
^
0_0_29474275_12190\Main.java:64: 错误: 需要class, interface或enum
printf("%lld\n",query(root[k],1,n,l,r));
^
0_0_29474275_12190\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_29474275_12190\Main.java:73: 错误: 需要class, interface或enum
return 0;
^
0_0_29474275_12190\Main.java:74: 错误: 需要class, interface或enum
}
^
56 个错误
|