F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_29474222_7487\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_29474222_7487\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_29474222_7487\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_29474222_7487\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_29474222_7487\Main.java:7: 错误: 需要class, interface或enum
const int MAX_N = 1007;
^
0_0_29474222_7487\Main.java:9: 错误: 需要class, interface或enum
struct Node {
^
0_0_29474222_7487\Main.java:11: 错误: 需要class, interface或enum
	Node () {
	^
0_0_29474222_7487\Main.java:16: 错误: 需要class, interface或enum
	}
	^
0_0_29474222_7487\Main.java:19: 错误: 需要class, interface或enum
	}
	^
0_0_29474222_7487\Main.java:22: 错误: 需要class, interface或enum
int n, m;
^
0_0_29474222_7487\Main.java:23: 错误: 需要class, interface或enum
Node z1[MAX_N], z2[MAX_N];
^
0_0_29474222_7487\Main.java:24: 错误: 需要class, interface或enum
int dp[2][MAX_N];
^
0_0_29474222_7487\Main.java:26: 错误: 需要class, interface或enum
bool cmp2(Node a, Node b) {
^
0_0_29474222_7487\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_29474222_7487\Main.java:32: 错误: 需要class, interface或enum
	scanf("%d", &T);
	^
0_0_29474222_7487\Main.java:33: 错误: 需要class, interface或enum
	int cas = 0;
	^
0_0_29474222_7487\Main.java:34: 错误: 需要class, interface或enum
	while (T-- > 0) {
	^
0_0_29474222_7487\Main.java:36: 错误: 需要class, interface或enum
		memset(dp, -1, sizeof dp);
		^
0_0_29474222_7487\Main.java:37: 错误: 需要class, interface或enum
		int n1 = 0, n2 = 0;
		^
0_0_29474222_7487\Main.java:38: 错误: 需要class, interface或enum
		for (int i = 1; i <= m; ++i) {
		^
0_0_29474222_7487\Main.java:38: 错误: 需要class, interface或enum
		for (int i = 1; i <= m; ++i) {
		                ^
0_0_29474222_7487\Main.java:38: 错误: 需要class, interface或enum
		for (int i = 1; i <= m; ++i) {
		                        ^
0_0_29474222_7487\Main.java:40: 错误: 需要class, interface或enum
			scanf("%d", &typ);
			^
0_0_29474222_7487\Main.java:41: 错误: 需要class, interface或enum
			if (typ == 1) {
			^
0_0_29474222_7487\Main.java:43: 错误: 需要class, interface或enum
			} else scanf("%d%d", &z2[n2].a, &z2[n2].x), ++n2;
			^
0_0_29474222_7487\Main.java:44: 错误: 需要class, interface或enum
		}	
		^
0_0_29474222_7487\Main.java:46: 错误: 需要class, interface或enum
		sort(z2, z2 + n2, cmp2);
		^
0_0_29474222_7487\Main.java:47: 错误: 需要class, interface或enum
		dp[0][0] = dp[1][0] = 0;
		^
0_0_29474222_7487\Main.java:48: 错误: 需要class, interface或enum
		for (int i = 0; i < n1; ++i) {
		^
0_0_29474222_7487\Main.java:48: 错误: 需要class, interface或enum
		for (int i = 0; i < n1; ++i) {
		                ^
0_0_29474222_7487\Main.java:48: 错误: 需要class, interface或enum
		for (int i = 0; i < n1; ++i) {
		                        ^
0_0_29474222_7487\Main.java:49: 错误: 需要class, interface或enum
			for (int j = z1[i].a; j >= z1[i].x; --j) {
			                      ^
0_0_29474222_7487\Main.java:49: 错误: 需要class, interface或enum
			for (int j = z1[i].a; j >= z1[i].x; --j) {
			                                    ^
0_0_29474222_7487\Main.java:52: 错误: 需要class, interface或enum
					else dp[0][j] = dp[0][j - z1[i].x] + 1;
					^
0_0_29474222_7487\Main.java:53: 错误: 需要class, interface或enum
				}
				^
0_0_29474222_7487\Main.java:56: 错误: 需要class, interface或enum
		for (int i = 0; i < n2; ++i) {
		                ^
0_0_29474222_7487\Main.java:56: 错误: 需要class, interface或enum
		for (int i = 0; i < n2; ++i) {
		                        ^
0_0_29474222_7487\Main.java:57: 错误: 需要class, interface或enum
			for (int j = n + 1 - z2[i].a; j >= z2[i].x; --j) {
			                              ^
0_0_29474222_7487\Main.java:57: 错误: 需要class, interface或enum
			for (int j = n + 1 - z2[i].a; j >= z2[i].x; --j) {
			                                            ^
0_0_29474222_7487\Main.java:60: 错误: 需要class, interface或enum
					else dp[1][j] = dp[1][j - z2[i].x] + 1;
					^
0_0_29474222_7487\Main.java:61: 错误: 需要class, interface或enum
				}
				^
0_0_29474222_7487\Main.java:66: 错误: 需要class, interface或enum
		for (int i = 0; i <= n; ++i) {
		^
0_0_29474222_7487\Main.java:66: 错误: 需要class, interface或enum
		for (int i = 0; i <= n; ++i) {
		                ^
0_0_29474222_7487\Main.java:66: 错误: 需要class, interface或enum
		for (int i = 0; i <= n; ++i) {
		                        ^
0_0_29474222_7487\Main.java:67: 错误: 需要class, interface或enum
			for (int j = i + 1; j <= n + 1; ++j) {
			                    ^
0_0_29474222_7487\Main.java:67: 错误: 需要class, interface或enum
			for (int j = i + 1; j <= n + 1; ++j) {
			                                ^
0_0_29474222_7487\Main.java:70: 错误: 需要class, interface或enum
					else if (i + n - j + 1 > ans1) ans1 = i + n - j + 1, ans2 = dp[0][i] + dp[1][n - j + 1];
					^
0_0_29474222_7487\Main.java:71: 错误: 需要class, interface或enum
				}
				^
0_0_29474222_7487\Main.java:75: 错误: 需要class, interface或enum
		printf("Case %d: %d %d\n", ++cas, ans1, ans2);
		^
0_0_29474222_7487\Main.java:76: 错误: 需要class, interface或enum
	}
	^
0_0_29474222_7487\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_29474222_7487\Main.java:79: 错误: 需要class, interface或enum
© 2019 GitHub, Inc.
       ^
52 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 23:25:21, Gzip enabled