0_0_29296395_12405\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_29296395_12405\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_29296395_12405\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_29296395_12405\Main.java:5: 错误: 需要class, interface或enum
int son;
^
0_0_29296395_12405\Main.java:6: 错误: 需要class, interface或enum
}node[1010];//用于保存各节点的信息
^
0_0_29296395_12405\Main.java:7: 错误: 需要class, interface或enum
struct see
^
0_0_29296395_12405\Main.java:10: 错误: 需要class, interface或enum
int next;
^
0_0_29296395_12405\Main.java:11: 错误: 需要class, interface或enum
}seek[2010];//用于索引个点的孩子
^
0_0_29296395_12405\Main.java:12: 错误: 需要class, interface或enum
int count[1010];//记录每个节点有多少种choice
^
0_0_29296395_12405\Main.java:13: 错误: 需要class, interface或enum
int seek_num;
^
0_0_29296395_12405\Main.java:14: 错误: 需要class, interface或enum
int money;
^
0_0_29296395_12405\Main.java:15: 错误: 需要class, interface或enum
int dp[1010][210],temp[210];
^
0_0_29296395_12405\Main.java:16: 错误: 需要class, interface或enum
int add_son(int sta,int end)//建立索引表
^
0_0_29296395_12405\Main.java:18: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=end; seek[seek_num].next=node[sta].son; node[sta].son=seek_num;
^
0_0_29296395_12405\Main.java:18: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=end; seek[seek_num].next=node[sta].son; node[sta].son=seek_num;
^
0_0_29296395_12405\Main.java:18: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=end; seek[seek_num].next=node[sta].son; node[sta].son=seek_num;
^
0_0_29296395_12405\Main.java:19: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=sta; seek[seek_num].next=node[end].son; node[end].son=seek_num;
^
0_0_29296395_12405\Main.java:19: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=sta; seek[seek_num].next=node[end].son; node[end].son=seek_num;
^
0_0_29296395_12405\Main.java:19: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=sta; seek[seek_num].next=node[end].son; node[end].son=seek_num;
^
0_0_29296395_12405\Main.java:19: 错误: 需要class, interface或enum
seek_num++; seek[seek_num].point=sta; seek[seek_num].next=node[end].son; node[end].son=seek_num;
^
0_0_29296395_12405\Main.java:20: 错误: 需要class, interface或enum
return 0;
^
0_0_29296395_12405\Main.java:21: 错误: 需要class, interface或enum
};
^
0_0_29296395_12405\Main.java:22: 错误: 需要class, interface或enum
int fun(int fa,int ffa)// dp加递归
^
0_0_29296395_12405\Main.java:25: 错误: 需要class, interface或enum
int price,power;
^
0_0_29296395_12405\Main.java:26: 错误: 需要class, interface或enum
int first,ii;
^
0_0_29296395_12405\Main.java:27: 错误: 需要class, interface或enum
for(i=node[fa].son;i!=0;i=seek[i].next)//索引fa的所有孩子再进行递归
^
0_0_29296395_12405\Main.java:27: 错误: 需要class, interface或enum
for(i=node[fa].son;i!=0;i=seek[i].next)//索引fa的所有孩子再进行递归
^
0_0_29296395_12405\Main.java:27: 错误: 需要class, interface或enum
for(i=node[fa].son;i!=0;i=seek[i].next)//索引fa的所有孩子再进行递归
^
0_0_29296395_12405\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:33: 错误: 需要class, interface或enum
for(i=node[fa].son;i!=0;i=seek[i].next)//索引fa的所有孩子i,分别在i以前的兄弟都已经进行dp的基础上进行dp
^
0_0_29296395_12405\Main.java:33: 错误: 需要class, interface或enum
for(i=node[fa].son;i!=0;i=seek[i].next)//索引fa的所有孩子i,分别在i以前的兄弟都已经进行dp的基础上进行dp
^
0_0_29296395_12405\Main.java:33: 错误: 需要class, interface或enum
for(i=node[fa].son;i!=0;i=seek[i].next)//索引fa的所有孩子i,分别在i以前的兄弟都已经进行dp的基础上进行dp
^
0_0_29296395_12405\Main.java:40: 错误: 需要class, interface或enum
for(ii=0;ii<=money;ii++)
^
0_0_29296395_12405\Main.java:40: 错误: 需要class, interface或enum
for(ii=0;ii<=money;ii++)
^
0_0_29296395_12405\Main.java:40: 错误: 需要class, interface或enum
for(ii=0;ii<=money;ii++)
^
0_0_29296395_12405\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:46: 错误: 需要class, interface或enum
for(j=money;j>=0;j--) //注意这里没有严格要求一定是从money……0,因为我用了一个temp
^
0_0_29296395_12405\Main.java:46: 错误: 需要class, interface或enum
for(j=money;j>=0;j--) //注意这里没有严格要求一定是从money……0,因为我用了一个temp
^
0_0_29296395_12405\Main.java:46: 错误: 需要class, interface或enum
for(j=money;j>=0;j--) //注意这里没有严格要求一定是从money……0,因为我用了一个temp
^
0_0_29296395_12405\Main.java:48: 错误: 需要class, interface或enum
for(k=0;k<=j;k++)//进行dp[i][j]=max{(power<dp[i][j-price])?power:dp[i][j-price]}
^
0_0_29296395_12405\Main.java:48: 错误: 需要class, interface或enum
for(k=0;k<=j;k++)//进行dp[i][j]=max{(power<dp[i][j-price])?power:dp[i][j-price]}
^
0_0_29296395_12405\Main.java:51: 错误: 需要class, interface或enum
if(min>temp[j])
^
0_0_29296395_12405\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:55: 错误: 需要class, interface或enum
for(j=0;j<=money;j++)
^
0_0_29296395_12405\Main.java:55: 错误: 需要class, interface或enum
for(j=0;j<=money;j++)
^
0_0_29296395_12405\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:63: 错误: 需要class, interface或enum
for(i=0;i<=count[fa];i++)//此只讨论i的各种选择
^
0_0_29296395_12405\Main.java:63: 错误: 需要class, interface或enum
for(i=0;i<=count[fa];i++)//此只讨论i的各种选择
^
0_0_29296395_12405\Main.java:63: 错误: 需要class, interface或enum
for(i=0;i<=count[fa];i++)//此只讨论i的各种选择
^
0_0_29296395_12405\Main.java:67: 错误: 需要class, interface或enum
else
^
0_0_29296395_12405\Main.java:69: 错误: 需要class, interface或enum
for(j=money;j>=0;j--)//进行dp[i][j]=max{dp[i][j],dp[i][j-price]+power}
^
0_0_29296395_12405\Main.java:69: 错误: 需要class, interface或enum
for(j=money;j>=0;j--)//进行dp[i][j]=max{dp[i][j],dp[i][j-price]+power}
^
0_0_29296395_12405\Main.java:69: 错误: 需要class, interface或enum
for(j=money;j>=0;j--)//进行dp[i][j]=max{dp[i][j],dp[i][j-price]+power}
^
0_0_29296395_12405\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:80: 错误: 需要class, interface或enum
for(j=0;j<=money;j++)
^
0_0_29296395_12405\Main.java:80: 错误: 需要class, interface或enum
for(j=0;j<=money;j++)
^
0_0_29296395_12405\Main.java:82: 错误: 需要class, interface或enum
return 0;
^
0_0_29296395_12405\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_29296395_12405\Main.java:88: 错误: 需要class, interface或enum
int v,u,choice;
^
0_0_29296395_12405\Main.java:90: 错误: 需要class, interface或enum
scanf("%d",&T);//测试数据
^
0_0_29296395_12405\Main.java:91: 错误: 需要class, interface或enum
while(T--)
^
0_0_29296395_12405\Main.java:94: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:94: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:94: 错误: 需要class, interface或enum
for(i=1;i<=n;i++)//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:96: 错误: 需要class, interface或enum
for(i=0;i<2010;i++)//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:96: 错误: 需要class, interface或enum
for(i=0;i<2010;i++)//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:96: 错误: 需要class, interface或enum
for(i=0;i<2010;i++)//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:98: 错误: 需要class, interface或enum
seek_num=0;//初始化,为索引做准备
^
0_0_29296395_12405\Main.java:99: 错误: 需要class, interface或enum
for(i=1;i<n;i++)
^
0_0_29296395_12405\Main.java:99: 错误: 需要class, interface或enum
for(i=1;i<n;i++)
^
0_0_29296395_12405\Main.java:99: 错误: 需要class, interface或enum
for(i=1;i<n;i++)
^
0_0_29296395_12405\Main.java:102: 错误: 需要class, interface或enum
add_s
|