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_18228471_22974\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_18228471_22974\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_18228471_22974\Main.java:2: 错误: 非法字符: '#'
#include<iostream>
^
0_0_18228471_22974\Main.java:3: 错误: 非法字符: '#'
#include<map>
^
0_0_18228471_22974\Main.java:4: 错误: 非法字符: '#'
#include<vector>
^
0_0_18228471_22974\Main.java:5: 错误: 非法字符: '#'
#include<queue>
^
0_0_18228471_22974\Main.java:6: 错误: 非法字符: '#'
#include<cstring>
^
0_0_18228471_22974\Main.java:7: 错误: 非法字符: '#'
#include<set>
^
0_0_18228471_22974\Main.java:10: 错误: 需要class, interface或enum
map<pair<int,int>,int>M;
^
0_0_18228471_22974\Main.java:12: 错误: 需要class, interface或enum
const int maxn=200005;
^
0_0_18228471_22974\Main.java:13: 错误: 需要class, interface或enum
const int INF=0x3f3f3f3f;
^
0_0_18228471_22974\Main.java:15: 错误: 需要class, interface或enum
int dist[maxn];
^
0_0_18228471_22974\Main.java:16: 错误: 需要class, interface或enum
int v[2][maxn];
^
0_0_18228471_22974\Main.java:17: 错误: 需要class, interface或enum
int cou[2];
^
0_0_18228471_22974\Main.java:18: 错误: 需要class, interface或enum
set<int>S;
^
0_0_18228471_22974\Main.java:19: 错误: 需要class, interface或enum
queue<int>q;
^
0_0_18228471_22974\Main.java:21: 错误: 需要class, interface或enum
void solve(int s,int n)
^
0_0_18228471_22974\Main.java:24: 错误: 需要class, interface或enum
	cou[1]=0;
	^
0_0_18228471_22974\Main.java:25: 错误: 需要class, interface或enum
	S.clear();
	^
0_0_18228471_22974\Main.java:26: 错误: 需要class, interface或enum
	while (!q.empty()) q.pop();
	^
0_0_18228471_22974\Main.java:27: 错误: 需要class, interface或enum
	for (int i=1;i<=n;i++) dist[i]=INF;
	^
0_0_18228471_22974\Main.java:27: 错误: 需要class, interface或enum
	for (int i=1;i<=n;i++) dist[i]=INF;
	             ^
0_0_18228471_22974\Main.java:27: 错误: 需要class, interface或enum
	for (int i=1;i<=n;i++) dist[i]=INF;
	                  ^
0_0_18228471_22974\Main.java:28: 错误: 需要class, interface或enum
	dist[s]=0;
	^
0_0_18228471_22974\Main.java:29: 错误: 需要class, interface或enum
	for (int i=1;i<=n;i++) S.insert(i);
	^
0_0_18228471_22974\Main.java:29: 错误: 需要class, interface或enum
	for (int i=1;i<=n;i++) S.insert(i);
	             ^
0_0_18228471_22974\Main.java:29: 错误: 需要class, interface或enum
	for (int i=1;i<=n;i++) S.insert(i);
	                  ^
0_0_18228471_22974\Main.java:30: 错误: 需要class, interface或enum
	S.erase(s);
	^
0_0_18228471_22974\Main.java:31: 错误: 需要class, interface或enum
	q.push(s);
	^
0_0_18228471_22974\Main.java:32: 错误: 需要class, interface或enum
	while (!q.empty() && S.size())
	^
0_0_18228471_22974\Main.java:35: 错误: 需要class, interface或enum
		q.pop();
		^
0_0_18228471_22974\Main.java:36: 错误: 需要class, interface或enum
		for (set<int>::iterator it=S.begin();it!=S.end();)
		^
0_0_18228471_22974\Main.java:36: 错误: 需要class, interface或enum
		for (set<int>::iterator it=S.begin();it!=S.end();)
		                                     ^
0_0_18228471_22974\Main.java:36: 错误: 需要class, interface或enum
		for (set<int>::iterator it=S.begin();it!=S.end();)
		                                                 ^
0_0_18228471_22974\Main.java:39: 错误: 需要class, interface或enum
			if (M.find(make_pair(i,x))==M.end())
			^
0_0_18228471_22974\Main.java:42: 错误: 需要class, interface或enum
				q.push(x);
				^
0_0_18228471_22974\Main.java:43: 错误: 需要class, interface或enum
				it=S.erase(it);
				^
0_0_18228471_22974\Main.java:44: 错误: 需要class, interface或enum
			}
			^
0_0_18228471_22974\Main.java:46: 错误: 需要class, interface或enum
		}
		^
0_0_18228471_22974\Main.java:54: 错误: 需要class, interface或enum
	scanf("%d",&t);
	^
0_0_18228471_22974\Main.java:55: 错误: 需要class, interface或enum
	while (t--)
	^
0_0_18228471_22974\Main.java:58: 错误: 需要class, interface或enum
		int n,m,s;
		^
0_0_18228471_22974\Main.java:59: 错误: 需要class, interface或enum
		scanf("%d %d",&n,&m);
		^
0_0_18228471_22974\Main.java:60: 错误: 需要class, interface或enum
		for (int i=0;i<m;i++)
		^
0_0_18228471_22974\Main.java:60: 错误: 需要class, interface或enum
		for (int i=0;i<m;i++)
		             ^
0_0_18228471_22974\Main.java:60: 错误: 需要class, interface或enum
		for (int i=0;i<m;i++)
		                 ^
0_0_18228471_22974\Main.java:63: 错误: 需要class, interface或enum
			scanf("%d %d",&u,&v);
			^
0_0_18228471_22974\Main.java:64: 错误: 需要class, interface或enum
			M[make_pair(u,v)]=1;
			^
0_0_18228471_22974\Main.java:65: 错误: 需要class, interface或enum
			M[make_pair(v,u)]=1;
			^
0_0_18228471_22974\Main.java:66: 错误: 需要class, interface或enum
		}
		^
0_0_18228471_22974\Main.java:68: 错误: 需要class, interface或enum
		solve(s,n);
		^
0_0_18228471_22974\Main.java:69: 错误: 需要class, interface或enum
		int cnt=0;
		^
0_0_18228471_22974\Main.java:70: 错误: 需要class, interface或enum
		for (int i=1;i<=n;i++)
		^
0_0_18228471_22974\Main.java:70: 错误: 需要class, interface或enum
		for (int i=1;i<=n;i++)
		             ^
0_0_18228471_22974\Main.java:70: 错误: 需要class, interface或enum
		for (int i=1;i<=n;i++)
		                  ^
0_0_18228471_22974\Main.java:75: 错误: 需要class, interface或enum
				cnt++;
				^
0_0_18228471_22974\Main.java:76: 错误: 需要class, interface或enum
				if (dist[i]==INF) printf("-1");
				^
0_0_18228471_22974\Main.java:77: 错误: 需要class, interface或enum
				else printf("%d",dist[i]);
				^
0_0_18228471_22974\Main.java:78: 错误: 需要class, interface或enum
			}
			^
0_0_18228471_22974\Main.java:81: 错误: 需要class, interface或enum
	}
	^
0_0_18228471_22974\Main.java:83: 错误: 需要class, interface或enum
}
^
61 个错误


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-16 12:44:52, Gzip enabled