0_0_36120860_9257\Main.java:1: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_36120860_9257\Main.java:1: 错误: 需要class, interface或enum
#include <stdio.h>
^
0_0_36120860_9257\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_36120860_9257\Main.java:6: 错误: 需要class, interface或enum
} a[21];
^
0_0_36120860_9257\Main.java:7: 错误: 非法字符: '#'
#define INF 0xfffffff
^
0_0_36120860_9257\Main.java:7: 错误: 需要class, interface或enum
#define INF 0xfffffff
^
0_0_36120860_9257\Main.java:9: 错误: 需要class, interface或enum
int n, k,w;
^
0_0_36120860_9257\Main.java:10: 错误: 需要class, interface或enum
void dp() {
^
0_0_36120860_9257\Main.java:12: 错误: 需要class, interface或enum
int max;
^
0_0_36120860_9257\Main.java:13: 错误: 需要class, interface或enum
memset(f,0,sizeof(f));
^
0_0_36120860_9257\Main.java:14: 错误: 需要class, interface或enum
for(i=0; i<n; i++) {
^
0_0_36120860_9257\Main.java:14: 错误: 需要class, interface或enum
for(i=0; i<n; i++) {
^
0_0_36120860_9257\Main.java:14: 错误: 需要class, interface或enum
for(i=0; i<n; i++) {
^
0_0_36120860_9257\Main.java:15: 错误: 需要class, interface或enum
for(j=w; j>=a[i].w; j--) {
^
0_0_36120860_9257\Main.java:15: 错误: 需要class, interface或enum
for(j=w; j>=a[i].w; j--) {
^
0_0_36120860_9257\Main.java:16: 错误: 需要class, interface或enum
for(p=1; p<=k; p++) {
^
0_0_36120860_9257\Main.java:16: 错误: 需要class, interface或enum
for(p=1; p<=k; p++) {
^
0_0_36120860_9257\Main.java:18: 错误: 需要class, interface或enum
if(max<f[j-a[i].w][p-1]+a[i].v) max = f[j-a[i].w][p-1]+a[i].v;
^
0_0_36120860_9257\Main.java:19: 错误: 需要class, interface或enum
f[j][p] = max;
^
0_0_36120860_9257\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_36120860_9257\Main.java:25: 错误: 需要class, interface或enum
for(i=0; i<w; i++) if(max<f[i][k]) max = f[i][k];
^
0_0_36120860_9257\Main.java:25: 错误: 需要class, interface或enum
for(i=0; i<w; i++) if(max<f[i][k]) max = f[i][k];
^
0_0_36120860_9257\Main.java:25: 错误: 需要class, interface或enum
for(i=0; i<w; i++) if(max<f[i][k]) max = f[i][k];
^
0_0_36120860_9257\Main.java:26: 错误: 需要class, interface或enum
printf("%d\n",max);
^
0_0_36120860_9257\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_36120860_9257\Main.java:30: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_36120860_9257\Main.java:31: 错误: 需要class, interface或enum
while(T--) {
^
0_0_36120860_9257\Main.java:33: 错误: 需要class, interface或enum
for(i=0; i<n; i++) scanf("%d%d",&a[i].v,&a[i].w);
^
0_0_36120860_9257\Main.java:33: 错误: 需要class, interface或enum
for(i=0; i<n; i++) scanf("%d%d",&a[i].v,&a[i].w);
^
0_0_36120860_9257\Main.java:33: 错误: 需要class, interface或enum
for(i=0; i<n; i++) scanf("%d%d",&a[i].v,&a[i].w);
^
0_0_36120860_9257\Main.java:34: 错误: 需要class, interface或enum
scanf("%d",&w);
^
0_0_36120860_9257\Main.java:35: 错误: 需要class, interface或enum
dp();
^
0_0_36120860_9257\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_36120860_9257\Main.java:38: 错误: 需要class, interface或enum
}
^
34 个错误
|