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_22763509_1310\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_22763509_1310\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_22763509_1310\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_22763509_1310\Main.java:3: 错误: 非法字符: '#'
#include<cmath>
^
0_0_22763509_1310\Main.java:4: 错误: 非法字符: '#'
#include<cstring>
^
0_0_22763509_1310\Main.java:5: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_22763509_1310\Main.java:6: 错误: 非法字符: '#'
#include<map>
^
0_0_22763509_1310\Main.java:7: 错误: 非法字符: '#'
#include<string>
^
0_0_22763509_1310\Main.java:8: 错误: 非法字符: '#'
#include<set>
^
0_0_22763509_1310\Main.java:9: 错误: 非法字符: '#'
#include<stack>
^
0_0_22763509_1310\Main.java:10: 错误: 非法字符: '#'
#include<vector>
^
0_0_22763509_1310\Main.java:11: 错误: 非法字符: '#'
#include<queue>
^
0_0_22763509_1310\Main.java:12: 错误: 非法字符: '#'
#include<functional>
^
0_0_22763509_1310\Main.java:13: 错误: 非法字符: '#'
#include<fstream>
^
0_0_22763509_1310\Main.java:15: 错误: 需要class, interface或enum
const int MAXN = 10000;
^
0_0_22763509_1310\Main.java:16: 错误: 需要class, interface或enum
const int MAXM = 100000;
^
0_0_22763509_1310\Main.java:17: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_22763509_1310\Main.java:18: 错误: 需要class, interface或enum
struct Edge
^
0_0_22763509_1310\Main.java:21: 错误: 需要class, interface或enum
}edge[MAXM];
^
0_0_22763509_1310\Main.java:22: 错误: 需要class, interface或enum
int head[MAXN], tol;
^
0_0_22763509_1310\Main.java:23: 错误: 需要class, interface或enum
int pre[MAXN], dis[MAXN];
^
0_0_22763509_1310\Main.java:24: 错误: 需要class, interface或enum
bool vis[MAXN];
^
0_0_22763509_1310\Main.java:25: 错误: 需要class, interface或enum
int N;//节点总个数,节点编号从0~N-1
^
0_0_22763509_1310\Main.java:26: 错误: 需要class, interface或enum
void init(int n)
^
0_0_22763509_1310\Main.java:29: 错误: 需要class, interface或enum
	tol = 0;
	^
0_0_22763509_1310\Main.java:30: 错误: 需要class, interface或enum
	memset(head, -1, sizeof(head));
	^
0_0_22763509_1310\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_22763509_1310\Main.java:35: 错误: 需要class, interface或enum
	edge[tol].cap = cap;
	^
0_0_22763509_1310\Main.java:36: 错误: 需要class, interface或enum
	edge[tol].cost = cost;
	^
0_0_22763509_1310\Main.java:37: 错误: 需要class, interface或enum
	edge[tol].flow = 0;
	^
0_0_22763509_1310\Main.java:38: 错误: 需要class, interface或enum
	edge[tol].next = head[u];
	^
0_0_22763509_1310\Main.java:39: 错误: 需要class, interface或enum
	head[u] = tol++;
	^
0_0_22763509_1310\Main.java:40: 错误: 需要class, interface或enum
	edge[tol].to = u;
	^
0_0_22763509_1310\Main.java:41: 错误: 需要class, interface或enum
	edge[tol].cap = 0;
	^
0_0_22763509_1310\Main.java:42: 错误: 需要class, interface或enum
	edge[tol].cost = -cost;
	^
0_0_22763509_1310\Main.java:43: 错误: 需要class, interface或enum
	edge[tol].flow = 0;
	^
0_0_22763509_1310\Main.java:44: 错误: 需要class, interface或enum
	edge[tol].next = head[v];
	^
0_0_22763509_1310\Main.java:45: 错误: 需要class, interface或enum
	head[v] = tol++;
	^
0_0_22763509_1310\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_22763509_1310\Main.java:50: 错误: 需要class, interface或enum
	for (int i = 0; i < N; i++)
	^
0_0_22763509_1310\Main.java:50: 错误: 需要class, interface或enum
	for (int i = 0; i < N; i++)
	                ^
0_0_22763509_1310\Main.java:50: 错误: 需要class, interface或enum
	for (int i = 0; i < N; i++)
	                       ^
0_0_22763509_1310\Main.java:53: 错误: 需要class, interface或enum
		vis[i] = false;
		^
0_0_22763509_1310\Main.java:54: 错误: 需要class, interface或enum
		pre[i] = -1;
		^
0_0_22763509_1310\Main.java:55: 错误: 需要class, interface或enum
	}
	^
0_0_22763509_1310\Main.java:57: 错误: 需要class, interface或enum
	vis[s] = true;
	^
0_0_22763509_1310\Main.java:58: 错误: 需要class, interface或enum
	q.push(s);
	^
0_0_22763509_1310\Main.java:59: 错误: 需要class, interface或enum
	while (!q.empty())
	^
0_0_22763509_1310\Main.java:62: 错误: 需要class, interface或enum
		q.pop();
		^
0_0_22763509_1310\Main.java:63: 错误: 需要class, interface或enum
		vis[u] = false;
		^
0_0_22763509_1310\Main.java:64: 错误: 需要class, interface或enum
		for (int i = head[u]; i != -1; i = edge[i].next)
		^
0_0_22763509_1310\Main.java:64: 错误: 需要class, interface或enum
		for (int i = head[u]; i != -1; i = edge[i].next)
		                      ^
0_0_22763509_1310\Main.java:64: 错误: 需要class, interface或enum
		for (int i = head[u]; i != -1; i = edge[i].next)
		                               ^
0_0_22763509_1310\Main.java:67: 错误: 需要class, interface或enum
			if (edge[i].cap > edge[i].flow &&
			^
0_0_22763509_1310\Main.java:71: 错误: 需要class, interface或enum
				pre[v] = i;
				^
0_0_22763509_1310\Main.java:72: 错误: 需要class, interface或enum
				if (!vis[v])
				^
0_0_22763509_1310\Main.java:75: 错误: 需要class, interface或enum
					q.push(v);
					^
0_0_22763509_1310\Main.java:76: 错误: 需要class, interface或enum
				}
				^
0_0_22763509_1310\Main.java:81: 错误: 需要class, interface或enum
	else return true;
	^
0_0_22763509_1310\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_22763509_1310\Main.java:87: 错误: 需要class, interface或enum
	cost = 0;
	^
0_0_22763509_1310\Main.java:88: 错误: 需要class, interface或enum
	while (spfa(s, t))
	^
0_0_22763509_1310\Main.java:91: 错误: 需要class, interface或enum
		for (int i = pre[t]; i != -1; i = pre[edge[i ^ 1].to])
		^
0_0_22763509_1310\Main.java:91: 错误: 需要class, interface或enum
		for (int i = pre[t]; i != -1; i = pre[edge[i ^ 1].to])
		                     ^
0_0_22763509_1310\Main.java:91: 错误: 需要class, interface或enum
		for (int i = pre[t]; i != -1; i = pre[edge[i ^ 1].to])
		                              ^
0_0_22763509_1310\Main.java:95: 错误: 需要class, interface或enum
		}
		^
0_0_22763509_1310\Main.java:96: 错误: 需要class, interface或enum
		for (int i = pre[t]; i != -1; i = pre[edge[i ^ 1].to])
		                     ^
0_0_22763509_1310\Main.java:96: 错误: 需要class, interface或enum
		for (int i = pre[t]; i != -1; i = pre[edge[i ^ 1].to])
		                              ^
0_0_22763509_1310\Main.java:99: 错误: 需要class, interface或enum
			edge[i ^ 1].flow -= Min;
			^
0_0_22763509_1310\Main.java:100: 错误: 需要class, interface或enum
			cost += edge[i].cost * Min;
			^
0_0_22763509_1310\Main.java:101: 错误: 需要class, interface或enum
		}
		^
0_0_22763509_1310\Main.java:103: 错误: 需要class, interface或enum
	}
	^
0_0_22763509_1310\Main.java:105: 错误: 需要class, interface或enum
}
^
0_0_22763509_1310\Main.java:109: 错误: 需要class, interface或enum
	while (scanf("%d", &n) == 1)
	^
0_0_22763509_1310\Main.java:112: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++)
		^
0_0_22763509_1310\Main.java:112: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++)
		                ^
0_0_22763509_1310\Main.java:112: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; i++)
		                        ^
0_0_22763509_1310\Main.java:115: 错误: 需要class, interface或enum
			addedge(i + n, 2 * n + 1, 1, 0);
			^
0_0_22763509_1310\Main.java:116: 错误: 需要class, interface或enum
			for (int j = 1; j <= n; j++)
			^
0_0_22763509_1310\Main.java:116: 错误: 需要class, interface或enum
			for (int j = 1; j <= n; j++)
			                ^
0_0_22763509_1310\Main.java:116: 错误: 需要class, interface或enum
			for (int j = 1; j <= n; j++)
			                        ^
0_0_22763509_1310\Main.java:119: 错误: 需要class, interface或enum
				scanf("%d", &c);
				^
0_0_22763509_1310\Main.java:120: 错误: 需要class, interface或enum
				addedge(i, j + n, 1, -1*c);
				^
0_0_22763509_1310\Main.java:121: 错误: 需要class, interface或enum
			}
			^
0_0_22763509_1310\Main.java:124: 错误: 需要class, interface或enum
		int ans=minCostMaxflow(0, 2 * n + 1, cost);
		^
0_0_22763509_1310\Main.java:125: 错误: 需要class, interface或enum
		printf("%d\n", -1*cost);
		^
0_0_22763509_1310\Main.java:126: 错误: 需要class, interface或enum
	}
	^
0_0_22763509_1310\Main.java:128: 错误: 需要class, interface或enum
}
^
88 个错误


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-12-02 03:24:28, Gzip enabled