0_0_36120873_28329\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_36120873_28329\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_36120873_28329\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_36120873_28329\Main.java:4: 错误: 需要class, interface或enum
int max_wei,neck_num,n,va;
^
0_0_36120873_28329\Main.java:5: 错误: 需要class, interface或enum
bool vis[21];
^
0_0_36120873_28329\Main.java:7: 错误: 需要class, interface或enum
struct Stone
^
0_0_36120873_28329\Main.java:10: 错误: 需要class, interface或enum
}sto[21];
^
0_0_36120873_28329\Main.java:13: 错误: 需要class, interface或enum
void dfs(int js,int valu,int sum,int pre)
^
0_0_36120873_28329\Main.java:18: 错误: 需要class, interface或enum
return;
^
0_0_36120873_28329\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_36120873_28329\Main.java:21: 错误: 需要class, interface或enum
for(i=pre;i<n;++i)
^
0_0_36120873_28329\Main.java:21: 错误: 需要class, interface或enum
for(i=pre;i<n;++i)
^
0_0_36120873_28329\Main.java:21: 错误: 需要class, interface或enum
for(i=pre;i<n;++i)
^
0_0_36120873_28329\Main.java:25: 错误: 需要class, interface或enum
if(sum+sto[i].wei<=max_wei)
^
0_0_36120873_28329\Main.java:28: 错误: 需要class, interface或enum
dfs(js+1,valu+sto[i].value,sum+sto[i].wei,i);
^
0_0_36120873_28329\Main.java:29: 错误: 需要class, interface或enum
vis[i]=0;
^
0_0_36120873_28329\Main.java:30: 错误: 需要class, interface或enum
}
^
0_0_36120873_28329\Main.java:37: 错误: 需要class, interface或enum
cin>>total;
^
0_0_36120873_28329\Main.java:38: 错误: 需要class, interface或enum
while(total--)
^
0_0_36120873_28329\Main.java:42: 错误: 需要class, interface或enum
for(i=0;i<n;++i)
^
0_0_36120873_28329\Main.java:42: 错误: 需要class, interface或enum
for(i=0;i<n;++i)
^
0_0_36120873_28329\Main.java:42: 错误: 需要class, interface或enum
for(i=0;i<n;++i)
^
0_0_36120873_28329\Main.java:44: 错误: 需要class, interface或enum
cin>>max_wei;
^
0_0_36120873_28329\Main.java:45: 错误: 需要class, interface或enum
memset(vis,0,sizeof(vis));
^
0_0_36120873_28329\Main.java:47: 错误: 需要class, interface或enum
va=0;
^
0_0_36120873_28329\Main.java:48: 错误: 需要class, interface或enum
dfs(0,0,0,0);
^
0_0_36120873_28329\Main.java:49: 错误: 需要class, interface或enum
cout<<va<<endl;
^
0_0_36120873_28329\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_36120873_28329\Main.java:53: 错误: 需要class, interface或enum
}
^
29 个错误
|