0_0_29296380_15833\Main.java:8: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_29296380_15833\Main.java:8: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_29296380_15833\Main.java:9: 错误: 非法字符: '#'
#include<iostream>
^
0_0_29296380_15833\Main.java:10: 错误: 非法字符: '#'
#include<string.h>
^
0_0_29296380_15833\Main.java:11: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_29296380_15833\Main.java:13: 错误: 需要class, interface或enum
const int MAXN=1010;
^
0_0_29296380_15833\Main.java:14: 错误: 需要class, interface或enum
const int INF=0x3fffffff;
^
0_0_29296380_15833\Main.java:15: 错误: 需要class, interface或enum
struct Node
^
0_0_29296380_15833\Main.java:18: 错误: 需要class, interface或enum
int next;
^
0_0_29296380_15833\Main.java:19: 错误: 需要class, interface或enum
}edge[MAXN*2];
^
0_0_29296380_15833\Main.java:20: 错误: 需要class, interface或enum
int tol;
^
0_0_29296380_15833\Main.java:21: 错误: 需要class, interface或enum
int head[MAXN];
^
0_0_29296380_15833\Main.java:22: 错误: 需要class, interface或enum
int dp[MAXN][220];
^
0_0_29296380_15833\Main.java:23: 错误: 需要class, interface或enum
int price[MAXN][60];
^
0_0_29296380_15833\Main.java:24: 错误: 需要class, interface或enum
int power[MAXN][60];
^
0_0_29296380_15833\Main.java:26: 错误: 需要class, interface或enum
void init()
^
0_0_29296380_15833\Main.java:29: 错误: 需要class, interface或enum
tol=0;
^
0_0_29296380_15833\Main.java:30: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:34: 错误: 需要class, interface或enum
edge[tol].next=head[a];
^
0_0_29296380_15833\Main.java:35: 错误: 需要class, interface或enum
head[a]=tol++;
^
0_0_29296380_15833\Main.java:36: 错误: 需要class, interface或enum
edge[tol].to=a;
^
0_0_29296380_15833\Main.java:37: 错误: 需要class, interface或enum
edge[tol].next=head[b];
^
0_0_29296380_15833\Main.java:38: 错误: 需要class, interface或enum
head[b]=tol++;
^
0_0_29296380_15833\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:41: 错误: 需要class, interface或enum
int tmp[MAXN];
^
0_0_29296380_15833\Main.java:42: 错误: 需要class, interface或enum
void dfs(int u,int pre)
^
0_0_29296380_15833\Main.java:46: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)dp[u][i]=0;
^
0_0_29296380_15833\Main.java:46: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)dp[u][i]=0;
^
0_0_29296380_15833\Main.java:48: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)tmp[i]=dp[u][i];
^
0_0_29296380_15833\Main.java:48: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)tmp[i]=dp[u][i];
^
0_0_29296380_15833\Main.java:48: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)tmp[i]=dp[u][i];
^
0_0_29296380_15833\Main.java:50: 错误: 需要class, interface或enum
for(int i=m;i>=0;i--)
^
0_0_29296380_15833\Main.java:50: 错误: 需要class, interface或enum
for(int i=m;i>=0;i--)
^
0_0_29296380_15833\Main.java:50: 错误: 需要class, interface或enum
for(int i=m;i>=0;i--)
^
0_0_29296380_15833\Main.java:52: 错误: 需要class, interface或enum
for(int j=1;j<=price[u][0];j++)
^
0_0_29296380_15833\Main.java:52: 错误: 需要class, interface或enum
for(int j=1;j<=price[u][0];j++)
^
0_0_29296380_15833\Main.java:56: 错误: 需要class, interface或enum
tmp[i]=dp[u][i];//tmp数组是记录的dp的上一个状态
^
0_0_29296380_15833\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:60: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++) dp[u][i]=INF;
^
0_0_29296380_15833\Main.java:60: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++) dp[u][i]=INF;
^
0_0_29296380_15833\Main.java:61: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].next)
^
0_0_29296380_15833\Main.java:61: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].next)
^
0_0_29296380_15833\Main.java:61: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].next)
^
0_0_29296380_15833\Main.java:64: 错误: 需要class, interface或enum
if(v==pre)continue;
^
0_0_29296380_15833\Main.java:65: 错误: 需要class, interface或enum
dfs(v,u);
^
0_0_29296380_15833\Main.java:66: 错误: 需要class, interface或enum
for(int j=m;j>=0;j--)
^
0_0_29296380_15833\Main.java:66: 错误: 需要class, interface或enum
for(int j=m;j>=0;j--)
^
0_0_29296380_15833\Main.java:66: 错误: 需要class, interface或enum
for(int j=m;j>=0;j--)
^
0_0_29296380_15833\Main.java:69: 错误: 需要class, interface或enum
for(int k=0;k<=j;k++)//这里k一定要从0开始。
^
0_0_29296380_15833\Main.java:69: 错误: 需要class, interface或enum
for(int k=0;k<=j;k++)//这里k一定要从0开始。
^
0_0_29296380_15833\Main.java:69: 错误: 需要class, interface或enum
for(int k=0;k<=j;k++)//这里k一定要从0开始。
^
0_0_29296380_15833\Main.java:71: 错误: 需要class, interface或enum
dp[u][j]=t;
^
0_0_29296380_15833\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:76: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)tmp[i]=dp[u][i];
^
0_0_29296380_15833\Main.java:76: 错误: 需要class, interface或enum
for(int i=0;i<=m;i++)tmp[i]=dp[u][i];
^
0_0_29296380_15833\Main.java:77: 错误: 需要class, interface或enum
for(int i=m;i>=0;i--)
^
0_0_29296380_15833\Main.java:77: 错误: 需要class, interface或enum
for(int i=m;i>=0;i--)
^
0_0_29296380_15833\Main.java:77: 错误: 需要class, interface或enum
for(int i=m;i>=0;i--)
^
0_0_29296380_15833\Main.java:79: 错误: 需要class, interface或enum
for(int j=1;j<=price[u][0];j++)
^
0_0_29296380_15833\Main.java:79: 错误: 需要class, interface或enum
for(int j=1;j<=price[u][0];j++)
^
0_0_29296380_15833\Main.java:83: 错误: 需要class, interface或enum
tmp[i]=dp[u][i];
^
0_0_29296380_15833\Main.java:84: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:91: 错误: 需要class, interface或enum
int T;
^
0_0_29296380_15833\Main.java:92: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_29296380_15833\Main.java:93: 错误: 需要class, interface或enum
while(T--)
^
0_0_29296380_15833\Main.java:96: 错误: 需要class, interface或enum
scanf("%d",&n);
^
0_0_29296380_15833\Main.java:97: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_29296380_15833\Main.java:97: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_29296380_15833\Main.java:97: 错误: 需要class, interface或enum
for(int i=1;i<n;i++)
^
0_0_29296380_15833\Main.java:100: 错误: 需要class, interface或enum
add(u,v);
^
0_0_29296380_15833\Main.java:101: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:103: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29296380_15833\Main.java:103: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29296380_15833\Main.java:103: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29296380_15833\Main.java:106: 错误: 需要class, interface或enum
power[i][0]=price[i][0];
^
0_0_29296380_15833\Main.java:107: 错误: 需要class, interface或enum
for(int j=1;j<=price[i][0];j++)
^
0_0_29296380_15833\Main.java:107: 错误: 需要class, interface或enum
for(int j=1;j<=price[i][0];j++)
^
0_0_29296380_15833\Main.java:107: 错误: 需要class, interface或enum
for(int j=1;j<=price[i][0];j++)
^
0_0_29296380_15833\Main.java:110: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:113: 错误: 需要class, interface或enum
printf("%d\n",dp[1][m]);
^
0_0_29296380_15833\Main.java:114: 错误: 需要class, interface或enum
}
^
0_0_29296380_15833\Main.java:116: 错误: 需要class, interface或enum
}
^
83 个错误
|