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_39183012_14679\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_39183012_14679\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_39183012_14679\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_39183012_14679\Main.java:4: 错误: 需要class, interface或enum
const int MAXN = 105;
^
0_0_39183012_14679\Main.java:6: 错误: 需要class, interface或enum
int map[MAXN][MAXN]; //景点之间的通路
^
0_0_39183012_14679\Main.java:7: 错误: 需要class, interface或enum
int price[MAXN]; //景点的魅力值
^
0_0_39183012_14679\Main.java:8: 错误: 需要class, interface或enum
int pre[MAXN]; //前一个城市,pre[i]表示目前路线上i城市的前一个是j城市
^
0_0_39183012_14679\Main.java:9: 错误: 需要class, interface或enum
int dp[MAXN]; //动态规划数组,dp[i]表示从起点到达i城市的最大魅力值
^
0_0_39183012_14679\Main.java:12: 错误: 需要class, interface或enum
void output(int x)
^
0_0_39183012_14679\Main.java:16: 错误: 需要class, interface或enum
	output(pre[x]);
	^
0_0_39183012_14679\Main.java:17: 错误: 需要class, interface或enum
	cout << x << "->";
	^
0_0_39183012_14679\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_39183012_14679\Main.java:23: 错误: 需要class, interface或enum
	cin >> T;
	^
0_0_39183012_14679\Main.java:24: 错误: 需要class, interface或enum
	int n, m;
	^
0_0_39183012_14679\Main.java:25: 错误: 需要class, interface或enum
	int count = 1; //测试用例数
	^
0_0_39183012_14679\Main.java:26: 错误: 需要class, interface或enum
	while (T--)
	^
0_0_39183012_14679\Main.java:29: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; ++i)
		^
0_0_39183012_14679\Main.java:29: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; ++i)
		                ^
0_0_39183012_14679\Main.java:29: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; ++i)
		                        ^
0_0_39183012_14679\Main.java:32: 错误: 需要class, interface或enum
		}
		^
0_0_39183012_14679\Main.java:35: 错误: 需要class, interface或enum
		pre[1] = -1; //起点没有前向城市
		^
0_0_39183012_14679\Main.java:36: 错误: 需要class, interface或enum
		memset(dp, 0, sizeof(dp));
		^
0_0_39183012_14679\Main.java:37: 错误: 需要class, interface或enum
		memset(map, -1, sizeof(map));
		^
0_0_39183012_14679\Main.java:39: 错误: 需要class, interface或enum
		cin >> m;
		^
0_0_39183012_14679\Main.java:40: 错误: 需要class, interface或enum
		int i, j, k;
		^
0_0_39183012_14679\Main.java:41: 错误: 需要class, interface或enum
		for (k = 1; k <= m; ++k)
		^
0_0_39183012_14679\Main.java:41: 错误: 需要class, interface或enum
		for (k = 1; k <= m; ++k)
		            ^
0_0_39183012_14679\Main.java:41: 错误: 需要class, interface或enum
		for (k = 1; k <= m; ++k)
		                    ^
0_0_39183012_14679\Main.java:44: 错误: 需要class, interface或enum
			map[i][j] = price[j]; //将到达城市的魅力值作为路线的魅力值
			^
0_0_39183012_14679\Main.java:45: 错误: 需要class, interface或enum
		}
		^
0_0_39183012_14679\Main.java:47: 错误: 需要class, interface或enum
		for (int i = 1; i <= n + 1; i++) //动态规划
		                ^
0_0_39183012_14679\Main.java:47: 错误: 需要class, interface或enum
		for (int i = 1; i <= n + 1; i++) //动态规划
		                            ^
0_0_39183012_14679\Main.java:49: 错误: 需要class, interface或enum
			for (int j = 1; j < i; j++)
			                ^
0_0_39183012_14679\Main.java:49: 错误: 需要class, interface或enum
			for (int j = 1; j < i; j++)
			                       ^
0_0_39183012_14679\Main.java:54: 错误: 需要class, interface或enum
					pre[i] = j;
					^
0_0_39183012_14679\Main.java:55: 错误: 需要class, interface或enum
				}
				^
0_0_39183012_14679\Main.java:61: 错误: 需要class, interface或enum
		cout << "CASE " << count++ << "#" << endl;
		^
0_0_39183012_14679\Main.java:62: 错误: 需要class, interface或enum
		cout << "points : " << dp[n + 1] << endl;
		^
0_0_39183012_14679\Main.java:63: 错误: 需要class, interface或enum
		cout << "circuit : ";
		^
0_0_39183012_14679\Main.java:64: 错误: 需要class, interface或enum
		output(pre[n + 1]);
		^
0_0_39183012_14679\Main.java:65: 错误: 需要class, interface或enum
		cout << 1 << endl;
		^
0_0_39183012_14679\Main.java:66: 错误: 需要class, interface或enum
	}
	^
0_0_39183012_14679\Main.java:68: 错误: 需要class, interface或enum
}
^
43 个错误


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 15:24:01, Gzip enabled