0_0_22241427_24454\Main.java:1: 错误: 非法字符: '#'
#pragma comment(linker, "/STACK:1024000000,1024000000")
^
0_0_22241427_24454\Main.java:1: 错误: 需要class, interface或enum
#pragma comment(linker, "/STACK:1024000000,1024000000")
^
0_0_22241427_24454\Main.java:2: 错误: 非法字符: '#'
#include<vector>
^
0_0_22241427_24454\Main.java:3: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_22241427_24454\Main.java:4: 错误: 非法字符: '#'
#include<cstring>
^
0_0_22241427_24454\Main.java:5: 错误: 非法字符: '#'
#include<iostream>
^
0_0_22241427_24454\Main.java:6: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_22241427_24454\Main.java:14: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_22241427_24454\Main.java:15: 错误: 非法字符: '#'
#define x first
^
0_0_22241427_24454\Main.java:15: 错误: 需要class, interface或enum
#define x first
^
0_0_22241427_24454\Main.java:16: 错误: 非法字符: '#'
#define y second
^
0_0_22241427_24454\Main.java:17: 错误: 非法字符: '#'
#define pb push_back
^
0_0_22241427_24454\Main.java:18: 错误: 非法字符: '#'
#define mp make_pair
^
0_0_22241427_24454\Main.java:19: 错误: 非法字符: '#'
#define all(a) (a).begin(),(a).end()
^
0_0_22241427_24454\Main.java:20: 错误: 非法字符: '#'
#define sz(a) ((int)(a).size())
^
0_0_22241427_24454\Main.java:21: 错误: 非法字符: '#'
#define vi vector<int>
^
0_0_22241427_24454\Main.java:22: 错误: 非法字符: '#'
#define pii pair<int,int>
^
0_0_22241427_24454\Main.java:23: 错误: 非法字符: '#'
#define per(i,a,b) for(int i=a;i>=int(b);i--)
^
0_0_22241427_24454\Main.java:23: 错误: 需要class, interface或enum
#define per(i,a,b) for(int i=a;i>=int(b);i--)
^
0_0_22241427_24454\Main.java:23: 错误: 需要class, interface或enum
#define per(i,a,b) for(int i=a;i>=int(b);i--)
^
0_0_22241427_24454\Main.java:24: 错误: 非法字符: '#'
#define rep(i,a,b) for(int i=a;i<=int(b);i++)
^
0_0_22241427_24454\Main.java:24: 错误: 需要class, interface或enum
#define rep(i,a,b) for(int i=a;i<=int(b);i++)
^
0_0_22241427_24454\Main.java:24: 错误: 需要class, interface或enum
#define rep(i,a,b) for(int i=a;i<=int(b);i++)
^
0_0_22241427_24454\Main.java:25: 错误: 非法字符: '#'
#define rix(i,x) for(int i=last[x];i;i=pre[i])
^
0_0_22241427_24454\Main.java:25: 错误: 需要class, interface或enum
#define rix(i,x) for(int i=last[x];i;i=pre[i])
^
0_0_22241427_24454\Main.java:25: 错误: 需要class, interface或enum
#define rix(i,x) for(int i=last[x];i;i=pre[i])
^
0_0_22241427_24454\Main.java:27: 错误: 需要class, interface或enum
ll t=1;for(a%=M;b;b>>=1){
^
0_0_22241427_24454\Main.java:27: 错误: 需要class, interface或enum
ll t=1;for(a%=M;b;b>>=1){
^
0_0_22241427_24454\Main.java:27: 错误: 需要class, interface或enum
ll t=1;for(a%=M;b;b>>=1){
^
0_0_22241427_24454\Main.java:29: 错误: 需要class, interface或enum
a=a*a%M;
^
0_0_22241427_24454\Main.java:30: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:35: 错误: 需要class, interface或enum
static char buf[N];
^
0_0_22241427_24454\Main.java:36: 错误: 需要class, interface或enum
static int n=0,p=0;
^
0_0_22241427_24454\Main.java:37: 错误: 需要class, interface或enum
if(p==n)p=0,n=fread(buf,1,N,stdin);
^
0_0_22241427_24454\Main.java:38: 错误: 需要class, interface或enum
if(p==n)exit(0);
^
0_0_22241427_24454\Main.java:39: 错误: 需要class, interface或enum
return buf[p++];
^
0_0_22241427_24454\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:42: 错误: 需要class, interface或enum
int f=1,c=getc();x=0;
^
0_0_22241427_24454\Main.java:43: 错误: 需要class, interface或enum
while(c<=32)c=getc();
^
0_0_22241427_24454\Main.java:44: 错误: 需要class, interface或enum
if(c=='-')f=-1,c=getc();
^
0_0_22241427_24454\Main.java:45: 错误: 需要class, interface或enum
for(;'0'<=c&&c<='9';c=getc())x=x*10+c-'0';
^
0_0_22241427_24454\Main.java:45: 错误: 需要class, interface或enum
for(;'0'<=c&&c<='9';c=getc())x=x*10+c-'0';
^
0_0_22241427_24454\Main.java:45: 错误: 需要class, interface或enum
for(;'0'<=c&&c<='9';c=getc())x=x*10+c-'0';
^
0_0_22241427_24454\Main.java:46: 错误: 需要class, interface或enum
x*=f;
^
0_0_22241427_24454\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:51: 错误: 需要class, interface或enum
int n,k,a[N],ans;
^
0_0_22241427_24454\Main.java:52: 错误: 需要class, interface或enum
struct Tree{
^
0_0_22241427_24454\Main.java:54: 错误: 需要class, interface或enum
int f[N],pre[M],last[N],child[M],s[N],v[N],n,p,rt;
^
0_0_22241427_24454\Main.java:55: 错误: 需要class, interface或enum
int init(int _n){
^
0_0_22241427_24454\Main.java:56: 错误: 需要class, interface或enum
n=_n;p=1;
^
0_0_22241427_24454\Main.java:57: 错误: 需要class, interface或enum
rep(i,1,n)last[i]=v[i]=0;
^
0_0_22241427_24454\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:60: 错误: 需要class, interface或enum
pre[++p]=last[x];last[x]=p;child[p]=y;c[p]=a;
^
0_0_22241427_24454\Main.java:60: 错误: 需要class, interface或enum
pre[++p]=last[x];last[x]=p;child[p]=y;c[p]=a;
^
0_0_22241427_24454\Main.java:60: 错误: 需要class, interface或enum
pre[++p]=last[x];last[x]=p;child[p]=y;c[p]=a;
^
0_0_22241427_24454\Main.java:61: 错误: 需要class, interface或enum
pre[++p]=last[y];last[y]=p;child[p]=x;c[p]=a;
^
0_0_22241427_24454\Main.java:61: 错误: 需要class, interface或enum
pre[++p]=last[y];last[y]=p;child[p]=x;c[p]=a;
^
0_0_22241427_24454\Main.java:61: 错误: 需要class, interface或enum
pre[++p]=last[y];last[y]=p;child[p]=x;c[p]=a;
^
0_0_22241427_24454\Main.java:61: 错误: 需要class, interface或enum
pre[++p]=last[y];last[y]=p;child[p]=x;c[p]=a;
^
0_0_22241427_24454\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:64: 错误: 需要class, interface或enum
s[x]=1;f[x]=0;
^
0_0_22241427_24454\Main.java:65: 错误: 需要class, interface或enum
for(int i=last[x];i;i=pre[i]){
^
0_0_22241427_24454\Main.java:65: 错误: 需要class, interface或enum
for(int i=last[x];i;i=pre[i]){
^
0_0_22241427_24454\Main.java:65: 错误: 需要class, interface或enum
for(int i=last[x];i;i=pre[i]){
^
0_0_22241427_24454\Main.java:66: 错误: 需要class, interface或enum
int y=child[i];if(y==fa||v[y])continue;
^
0_0_22241427_24454\Main.java:67: 错误: 需要class, interface或enum
find(y,x);f[x]=max(f[x],s[y]);s[x]+=s[y];
^
0_0_22241427_24454\Main.java:67: 错误: 需要class, interface或enum
find(y,x);f[x]=max(f[x],s[y]);s[x]+=s[y];
^
0_0_22241427_24454\Main.java:67: 错误: 需要class, interface或enum
find(y,x);f[x]=max(f[x],s[y]);s[x]+=s[y];
^
0_0_22241427_24454\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:72: 错误: 需要class, interface或enum
int dfs(int x,int fa,int len){
^
0_0_22241427_24454\Main.java:74: 错误: 需要class, interface或enum
if(-a[x]-len>mx2)mx2=-a[x]-len;
^
0_0_22241427_24454\Main.java:75: 错误: 需要class, interface或enum
int t=a[x]+mx2;
^
0_0_22241427_24454\Main.java:76: 错误: 需要class, interface或enum
if(-a[x]+mx1>t)t=-a[x]+mx1;
^
0_0_22241427_24454\Main.java:77: 错误: 需要class, interface或enum
if(t-len>ans)ans=t-len;
^
0_0_22241427_24454\Main.java:78: 错误: 需要class, interface或enum
s[x]=1;
^
0_0_22241427_24454\Main.java:79: 错误: 需要class, interface或enum
rix(i,x){
^
0_0_22241427_24454\Main.java:80: 错误: 需要class, interface或enum
int y=child[i];if(y==fa||v[y])continue;
^
0_0_22241427_24454\Main.java:81: 错误: 需要class, interface或enum
dfs(y,x,len+c[i]);
^
0_0_22241427_24454\Main.java:82: 错误: 需要class, interface或enum
s[x]+=s[y];
^
0_0_22241427_24454\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_22241427_24454\Main.java:86: 错误: 需要class, interface或enum
find(x,0);v[x=rt]=1;int m=n;
^
0_0_22241427_24454\Main.java:86: 错误: 需要class, interface或enum
find(x,0);v[x=rt]=1;int m=n;
^
0_0_22241427_24454\Main.java:87: 错误: 需要class, interface或enum
mx1=a[x];mx2=-a[x];
^
0_0_22241427_24454\Main.java:87: 错误: 需要class, interface或enum
mx1=a[x];mx2=-a[x];
^
0_0_22241427_24454\Main.java:88: 错误: 需要class, interface或enum
rix(i,x){
^
0_0_22241427_24454\Main.java:89: 错误: 需要class, interface或enum
int y=child[i];if(v[y])continue;
^
0_0_22241427_24454\Main.java:90: 错误: 需要class, interface或enum
|