0_0_29828317_30403\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_29828317_30403\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_29828317_30403\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_29828317_30403\Main.java:3: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_29828317_30403\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_29828317_30403\Main.java:6: 错误: 需要class, interface或enum
const int maxn = 2e3 + 5;
^
0_0_29828317_30403\Main.java:7: 错误: 需要class, interface或enum
int dp[maxn], w[50];
^
0_0_29828317_30403\Main.java:8: 错误: 需要class, interface或enum
int main()
^
0_0_29828317_30403\Main.java:11: 错误: 需要class, interface或enum
cin >> t;
^
0_0_29828317_30403\Main.java:12: 错误: 需要class, interface或enum
while(t--)
^
0_0_29828317_30403\Main.java:15: 错误: 需要class, interface或enum
cin >> n;
^
0_0_29828317_30403\Main.java:16: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:16: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:16: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:18: 错误: 需要class, interface或enum
dp[0] = 1;
^
0_0_29828317_30403\Main.java:19: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:19: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:19: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:21: 错误: 需要class, interface或enum
for(int j = maxn-1; j >= w[i]; j--)
^
0_0_29828317_30403\Main.java:21: 错误: 需要class, interface或enum
for(int j = maxn-1; j >= w[i]; j--)
^
0_0_29828317_30403\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_29828317_30403\Main.java:24: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:24: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++)
^
0_0_29828317_30403\Main.java:26: 错误: 需要class, interface或enum
for(int j = 0; j < maxn-w[i]; j++) //这里一定要正着枚举, 因为用的要是前面的一轮的状态, 如果倒着就用到这一轮了
^
0_0_29828317_30403\Main.java:26: 错误: 需要class, interface或enum
for(int j = 0; j < maxn-w[i]; j++) //这里一定要正着枚举, 因为用的要是前面的一轮的状态, 如果倒着就用到这一轮了
^
0_0_29828317_30403\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_29828317_30403\Main.java:30: 错误: 需要class, interface或enum
cin >> m;
^
0_0_29828317_30403\Main.java:31: 错误: 需要class, interface或enum
while(m--)
^
0_0_29828317_30403\Main.java:34: 错误: 需要class, interface或enum
scanf("%d", &x);
^
0_0_29828317_30403\Main.java:35: 错误: 需要class, interface或enum
puts(dp[x] ? "YES" : "NO");
^
0_0_29828317_30403\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_29828317_30403\Main.java:39: 错误: 需要class, interface或enum
}
^
32 个错误
|