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_24282973_4982\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_24282973_4982\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_24282973_4982\Main.java:3: 错误: 需要class, interface或enum
int dirx[8]={-2,-1,1,2,2,1,-1,-2};
^
0_0_24282973_4982\Main.java:4: 错误: 需要class, interface或enum
int diry[8]={1,2,2,1,-1,-2,-2,-1};
^
0_0_24282973_4982\Main.java:5: 错误: 需要class, interface或enum
string s1,s2;
^
0_0_24282973_4982\Main.java:6: 错误: 需要class, interface或enum
int ans;
^
0_0_24282973_4982\Main.java:7: 错误: 需要class, interface或enum
int vis[10][10];
^
0_0_24282973_4982\Main.java:8: 错误: 需要class, interface或enum
struct node{
^
0_0_24282973_4982\Main.java:10: 错误: 需要class, interface或enum
	node(int x,int y,int time):x(x),y(y),time(time){}
	^
0_0_24282973_4982\Main.java:12: 错误: 需要class, interface或enum
bool check(int x,int y){
^
0_0_24282973_4982\Main.java:14: 错误: 需要class, interface或enum
	return false;
	^
0_0_24282973_4982\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_24282973_4982\Main.java:18: 错误: 需要class, interface或enum
	ans=0;
	^
0_0_24282973_4982\Main.java:19: 错误: 需要class, interface或enum
	q.push(node(x1,y1,0));
	^
0_0_24282973_4982\Main.java:20: 错误: 需要class, interface或enum
	memset(vis,0,sizeof vis);
	^
0_0_24282973_4982\Main.java:21: 错误: 需要class, interface或enum
	vis[x1][y1]=1;
	^
0_0_24282973_4982\Main.java:22: 错误: 需要class, interface或enum
	while(!q.empty()){
	^
0_0_24282973_4982\Main.java:24: 错误: 需要class, interface或enum
		q.pop();
		^
0_0_24282973_4982\Main.java:25: 错误: 需要class, interface或enum
		int nowx=now.x;
		^
0_0_24282973_4982\Main.java:26: 错误: 需要class, interface或enum
		int nowy=now.y;
		^
0_0_24282973_4982\Main.java:27: 错误: 需要class, interface或enum
		int nowt=now.time;
		^
0_0_24282973_4982\Main.java:28: 错误: 需要class, interface或enum
		if(nowx==x2 && nowy==y2){
		^
0_0_24282973_4982\Main.java:30: 错误: 需要class, interface或enum
			break;
			^
0_0_24282973_4982\Main.java:31: 错误: 需要class, interface或enum
		}
		^
0_0_24282973_4982\Main.java:33: 错误: 需要class, interface或enum
		for(int i=0;i<8;i++){
		^
0_0_24282973_4982\Main.java:33: 错误: 需要class, interface或enum
		for(int i=0;i<8;i++){
		            ^
0_0_24282973_4982\Main.java:33: 错误: 需要class, interface或enum
		for(int i=0;i<8;i++){
		                ^
0_0_24282973_4982\Main.java:35: 错误: 需要class, interface或enum
			int nexty=nowy+diry[i];
			^
0_0_24282973_4982\Main.java:36: 错误: 需要class, interface或enum
			if(!vis[nextx][nexty]){
			^
0_0_24282973_4982\Main.java:38: 错误: 需要class, interface或enum
			}
			^
0_0_24282973_4982\Main.java:46: 错误: 需要class, interface或enum
		y1=s1[0]-'a'+1;
		^
0_0_24282973_4982\Main.java:47: 错误: 需要class, interface或enum
		x1=s1[1]-'0';
		^
0_0_24282973_4982\Main.java:48: 错误: 需要class, interface或enum
		y2=s2[0]-'a'+1;
		^
0_0_24282973_4982\Main.java:49: 错误: 需要class, interface或enum
		x2=s2[1]-'0';
		^
0_0_24282973_4982\Main.java:50: 错误: 需要class, interface或enum
		bfs(x1,y1,x2,y2);
		^
0_0_24282973_4982\Main.java:51: 错误: 需要class, interface或enum
		cout<<"To get from "<<s1<<" to "<<s2<<" takes "<<ans<<" knight moves."<<endl;
		^
0_0_24282973_4982\Main.java:52: 错误: 需要class, interface或enum
	}
	^
0_0_24282973_4982\Main.java:54: 错误: 需要class, interface或enum
} 
^
38 个错误


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 22:49:02, Gzip enabled