0_0_17228673_22646\Main.java:1: 错误: 非法字符: '#'
#pragma comment(linker, "/STACK:1024000000,1024000000")
^
0_0_17228673_22646\Main.java:1: 错误: 需要class, interface或enum
#pragma comment(linker, "/STACK:1024000000,1024000000")
^
0_0_17228673_22646\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_17228673_22646\Main.java:3: 错误: 非法字符: '#'
#include<iostream>
^
0_0_17228673_22646\Main.java:4: 错误: 非法字符: '#'
#include<cstring>
^
0_0_17228673_22646\Main.java:5: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_17228673_22646\Main.java:6: 错误: 非法字符: '#'
#define N 100010
^
0_0_17228673_22646\Main.java:7: 错误: 非法字符: '#'
#define rep(i,u,v) for (int i=(u);i<=(v);i++)
^
0_0_17228673_22646\Main.java:7: 错误: 需要class, interface或enum
#define rep(i,u,v) for (int i=(u);i<=(v);i++)
^
0_0_17228673_22646\Main.java:7: 错误: 需要class, interface或enum
#define rep(i,u,v) for (int i=(u);i<=(v);i++)
^
0_0_17228673_22646\Main.java:8: 错误: 非法字符: '#'
#define reph(k,x) for (int k=f[x];k!=-1;k=e[k].next)
^
0_0_17228673_22646\Main.java:8: 错误: 需要class, interface或enum
#define reph(k,x) for (int k=f[x];k!=-1;k=e[k].next)
^
0_0_17228673_22646\Main.java:8: 错误: 需要class, interface或enum
#define reph(k,x) for (int k=f[x];k!=-1;k=e[k].next)
^
0_0_17228673_22646\Main.java:9: 错误: 非法字符: '#'
#define lc (x*2)
^
0_0_17228673_22646\Main.java:10: 错误: 非法字符: '#'
#define rc (x*2+1)
^
0_0_17228673_22646\Main.java:12: 错误: 需要class, interface或enum
struct node{
^
0_0_17228673_22646\Main.java:14: 错误: 需要class, interface或enum
}e[2*N];
^
0_0_17228673_22646\Main.java:15: 错误: 需要class, interface或enum
int n,m,cnt,len;
^
0_0_17228673_22646\Main.java:16: 错误: 需要class, interface或enum
int f[N],a[N],Size_[N],dfn[N];
^
0_0_17228673_22646\Main.java:17: 错误: 需要class, interface或enum
long long t[4*N],p[4*N];
^
0_0_17228673_22646\Main.java:18: 错误: 需要class, interface或enum
void ins(int x, int y){
^
0_0_17228673_22646\Main.java:20: 错误: 需要class, interface或enum
e[len].next=f[x];
^
0_0_17228673_22646\Main.java:21: 错误: 需要class, interface或enum
f[x]=len;
^
0_0_17228673_22646\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:25: 错误: 需要class, interface或enum
Size_[x]=1;
^
0_0_17228673_22646\Main.java:26: 错误: 需要class, interface或enum
reph(k,x){
^
0_0_17228673_22646\Main.java:28: 错误: 需要class, interface或enum
if (dfn[y])continue;
^
0_0_17228673_22646\Main.java:29: 错误: 需要class, interface或enum
dfs(y);
^
0_0_17228673_22646\Main.java:30: 错误: 需要class, interface或enum
Size_[x]+=Size_[y];
^
0_0_17228673_22646\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:34: 错误: 需要class, interface或enum
t[lc]+=p[x];t[rc]+=p[x];
^
0_0_17228673_22646\Main.java:35: 错误: 需要class, interface或enum
p[lc]+=p[x];p[rc]+=p[x];
^
0_0_17228673_22646\Main.java:35: 错误: 需要class, interface或enum
p[lc]+=p[x];p[rc]+=p[x];
^
0_0_17228673_22646\Main.java:36: 错误: 需要class, interface或enum
p[x] = 0;
^
0_0_17228673_22646\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:41: 错误: 需要class, interface或enum
p[x]+=val;
^
0_0_17228673_22646\Main.java:42: 错误: 需要class, interface或enum
return;
^
0_0_17228673_22646\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:45: 错误: 需要class, interface或enum
push_down(x);
^
0_0_17228673_22646\Main.java:46: 错误: 需要class, interface或enum
if (ed<=mid)ins(lc,l,mid,st,ed,val);
^
0_0_17228673_22646\Main.java:47: 错误: 需要class, interface或enum
else if (st>mid)ins(rc,mid+1,r,st,ed,val);
^
0_0_17228673_22646\Main.java:48: 错误: 需要class, interface或enum
else{
^
0_0_17228673_22646\Main.java:50: 错误: 需要class, interface或enum
ins(rc,mid+1,r,mid+1,ed,val);
^
0_0_17228673_22646\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:56: 错误: 需要class, interface或enum
int mid=(l+r)/2;
^
0_0_17228673_22646\Main.java:57: 错误: 需要class, interface或enum
push_down(x);
^
0_0_17228673_22646\Main.java:58: 错误: 需要class, interface或enum
if (ed<=mid)return query(lc,l,mid,st,ed);
^
0_0_17228673_22646\Main.java:59: 错误: 需要class, interface或enum
else if (st>mid)return query(rc,mid+1,r,st,ed);
^
0_0_17228673_22646\Main.java:60: 错误: 需要class, interface或enum
else return max(query(lc,l,mid,st,mid),query(rc,mid+1,r,mid+1,ed));
^
0_0_17228673_22646\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:65: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_17228673_22646\Main.java:66: 错误: 需要class, interface或enum
rep(tt,1,T){
^
0_0_17228673_22646\Main.java:68: 错误: 需要class, interface或enum
len=cnt=0;
^
0_0_17228673_22646\Main.java:69: 错误: 需要class, interface或enum
memset(t,0,sizeof(t));
^
0_0_17228673_22646\Main.java:70: 错误: 需要class, interface或enum
memset(p,0,sizeof(p));
^
0_0_17228673_22646\Main.java:71: 错误: 需要class, interface或enum
memset(f,-1,sizeof(f));
^
0_0_17228673_22646\Main.java:72: 错误: 需要class, interface或enum
scanf("%d%d",&n,&m);
^
0_0_17228673_22646\Main.java:73: 错误: 需要class, interface或enum
rep(i,1,n-1){
^
0_0_17228673_22646\Main.java:75: 错误: 需要class, interface或enum
x++;y++;
^
0_0_17228673_22646\Main.java:75: 错误: 需要class, interface或enum
x++;y++;
^
0_0_17228673_22646\Main.java:76: 错误: 需要class, interface或enum
ins(x,y);ins(y,x);
^
0_0_17228673_22646\Main.java:76: 错误: 需要class, interface或enum
ins(x,y);ins(y,x);
^
0_0_17228673_22646\Main.java:77: 错误: 需要class, interface或enum
dfn[i]=Size_[i]=0;
^
0_0_17228673_22646\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:80: 错误: 需要class, interface或enum
dfs(1);
^
0_0_17228673_22646\Main.java:81: 错误: 需要class, interface或enum
rep(i,1,n){
^
0_0_17228673_22646\Main.java:83: 错误: 需要class, interface或enum
ins(1,1,n,dfn[i],dfn[i]+Size_[i]-1,(long long)a[i]);
^
0_0_17228673_22646\Main.java:84: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:85: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++){
^
0_0_17228673_22646\Main.java:85: 错误: 需要class, interface或enum
for (int i=1;i<=m;i++){
^
0_0_17228673_22646\Main.java:87: 错误: 需要class, interface或enum
if (!ty){
^
0_0_17228673_22646\Main.java:89: 错误: 需要class, interface或enum
x++;
^
0_0_17228673_22646\Main.java:90: 错误: 需要class, interface或enum
ins(1,1,n,dfn[x],dfn[x]+Size_[x]-1,(long long)(y-a[x]));
^
0_0_17228673_22646\Main.java:91: 错误: 需要class, interface或enum
a[x]=y;
^
0_0_17228673_22646\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:95: 错误: 需要class, interface或enum
x++;
^
0_0_17228673_22646\Main.java:96: 错误: 需要class, interface或enum
printf("%I64d\n",query(1,1,n,dfn[x],dfn[x]+Size_[x]-1));
^
0_0_17228673_22646\Main.java:97: 错误: 需要class, interface或enum
}
^
0_0_17228673_22646\Main.java:101: 错误: 需要class, interface或enum
}
^
80 个错误
|