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_17371241_30396\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_17371241_30396\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_17371241_30396\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_17371241_30396\Main.java:3: 错误: 非法字符: '#'
#include<cstdlib>
^
0_0_17371241_30396\Main.java:5: 错误: 需要class, interface或enum
int map[maxn][maxn], vis[maxn][maxn];
^
0_0_17371241_30396\Main.java:6: 错误: 需要class, interface或enum
int N, M, T;
^
0_0_17371241_30396\Main.java:7: 错误: 需要class, interface或enum
int sx, sy, ex, ey, flag;			//start_x start_y end_x end_y
^
0_0_17371241_30396\Main.java:9: 错误: 需要class, interface或enum
void dfs(int x, int y, int step){
^
0_0_17371241_30396\Main.java:12: 错误: 需要class, interface或enum
	if(step == T){			//go T step and reach the end position
	^
0_0_17371241_30396\Main.java:14: 错误: 需要class, interface或enum
		return;
		^
0_0_17371241_30396\Main.java:15: 错误: 需要class, interface或enum
	}
	^
0_0_17371241_30396\Main.java:18: 错误: 需要class, interface或enum
	step++;
	^
0_0_17371241_30396\Main.java:19: 错误: 需要class, interface或enum
					dfs(x-1,y,step);//puts("u");
					^
0_0_17371241_30396\Main.java:21: 错误: 需要class, interface或enum
	dfs(x,y-1,step);//puts("l");
	^
0_0_17371241_30396\Main.java:23: 错误: 需要class, interface或enum
									dfs(x,y+1,step);//puts("r");
									^
0_0_17371241_30396\Main.java:25: 错误: 需要class, interface或enum
					dfs(x+1,y,step);//puts("d");
					^
0_0_17371241_30396\Main.java:26: 错误: 需要class, interface或enum
					vis[x][y] = 0;
					^
0_0_17371241_30396\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_17371241_30396\Main.java:31: 错误: 需要class, interface或enum
	while(scanf("%d%d%d", &N, &M, &T) == 3){
	^
0_0_17371241_30396\Main.java:33: 错误: 需要class, interface或enum
		memset(map, 0, sizeof(map));			//set all the block to wall, which you cant entry
		^
0_0_17371241_30396\Main.java:34: 错误: 需要class, interface或enum
		memset(vis, 0, sizeof(vis));
		^
0_0_17371241_30396\Main.java:35: 错误: 需要class, interface或enum
		flag = 0;
		^
0_0_17371241_30396\Main.java:36: 错误: 需要class, interface或enum
		for(int i = 1; i <= N; i++){			//read the map
		^
0_0_17371241_30396\Main.java:36: 错误: 需要class, interface或enum
		for(int i = 1; i <= N; i++){			//read the map
		               ^
0_0_17371241_30396\Main.java:36: 错误: 需要class, interface或enum
		for(int i = 1; i <= N; i++){			//read the map
		                       ^
0_0_17371241_30396\Main.java:38: 错误: 需要class, interface或enum
			for(int j = 1; j <= M; j++){
			^
0_0_17371241_30396\Main.java:38: 错误: 需要class, interface或enum
			for(int j = 1; j <= M; j++){
			               ^
0_0_17371241_30396\Main.java:38: 错误: 需要class, interface或enum
			for(int j = 1; j <= M; j++){
			                       ^
0_0_17371241_30396\Main.java:40: 错误: 需要class, interface或enum
				if(ch == 'X') map[i][j] = 1;	//walls are 1, roads are 0
				^
0_0_17371241_30396\Main.java:41: 错误: 需要class, interface或enum
				else if(ch == 'S') sx = i, sy = j;
				^
0_0_17371241_30396\Main.java:42: 错误: 需要class, interface或enum
				else if(ch == 'D') ex = i, ey = j;
				^
0_0_17371241_30396\Main.java:43: 错误: 需要class, interface或enum
			}
			^
0_0_17371241_30396\Main.java:46: 错误: 需要class, interface或enum
		else dfs(sx, sy, 0);
		^
0_0_17371241_30396\Main.java:47: 错误: 需要class, interface或enum
		printf("%s\n", flag==1?"YES":"NO");
		^
0_0_17371241_30396\Main.java:48: 错误: 需要class, interface或enum
	}
	^
0_0_17371241_30396\Main.java:50: 错误: 需要class, interface或enum
}
^
36 个错误


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 17:28:16, Gzip enabled