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_20869653_28533\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_20869653_28533\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_20869653_28533\Main.java:2: 错误: 非法字符: '#'
#include <queue>
^
0_0_20869653_28533\Main.java:7: 错误: 非法的类型开始
public:
      ^
0_0_20869653_28533\Main.java:7: 错误: 需要';'
public:
       ^
0_0_20869653_28533\Main.java:8: 错误: 需要<标识符>
    int x, y, time;
         ^
0_0_20869653_28533\Main.java:10: 错误: 需要class, interface或enum
int M, N;
^
0_0_20869653_28533\Main.java:11: 错误: 需要class, interface或enum
char map[25][25];
^
0_0_20869653_28533\Main.java:12: 错误: 需要class, interface或enum
int vis[25][25];
^
0_0_20869653_28533\Main.java:13: 错误: 需要class, interface或enum
int xy[4][2] = { 0, 1, 0, -1, 1, 0, -1, 0 };
^
0_0_20869653_28533\Main.java:14: 错误: 需要class, interface或enum
int start_x, start_y, end_x, end_y;
^
0_0_20869653_28533\Main.java:15: 错误: 需要class, interface或enum
queue <node> que;
^
0_0_20869653_28533\Main.java:16: 错误: 需要class, interface或enum
Node node;
^
0_0_20869653_28533\Main.java:17: 错误: 需要class, interface或enum
int bfs()
^
0_0_20869653_28533\Main.java:20: 错误: 需要class, interface或enum
    node.x = start_x;
    ^
0_0_20869653_28533\Main.java:21: 错误: 需要class, interface或enum
    node.y = start_y;
    ^
0_0_20869653_28533\Main.java:22: 错误: 需要class, interface或enum
    node.time = 0;
    ^
0_0_20869653_28533\Main.java:23: 错误: 需要class, interface或enum
    que.push(node);
    ^
0_0_20869653_28533\Main.java:24: 错误: 需要class, interface或enum
    while(!que.empty())
    ^
0_0_20869653_28533\Main.java:27: 错误: 需要class, interface或enum
        que.pop();
        ^
0_0_20869653_28533\Main.java:28: 错误: 需要class, interface或enum
        if(node.x == end_x && node.y == end_y)   //到达终点
        ^
0_0_20869653_28533\Main.java:31: 错误: 需要class, interface或enum
        }
        ^
0_0_20869653_28533\Main.java:32: 错误: 需要class, interface或enum
        for(int i = 0; i < 4; i++)
                       ^
0_0_20869653_28533\Main.java:32: 错误: 需要class, interface或enum
        for(int i = 0; i < 4; i++)
                              ^
0_0_20869653_28533\Main.java:35: 错误: 需要class, interface或enum
            fy = node.y + xy[i][1];
            ^
0_0_20869653_28533\Main.java:36: 错误: 需要class, interface或enum
            if(fx >= 0 && fx < M && fy >= 0 && fy < N && map[fx][fy] != '*' && !vis[fx][fy])
            ^
0_0_20869653_28533\Main.java:41: 错误: 需要class, interface或enum
                    temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                    ^
0_0_20869653_28533\Main.java:41: 错误: 需要class, interface或enum
                    temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                 ^
0_0_20869653_28533\Main.java:41: 错误: 需要class, interface或enum
                    temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                              ^
0_0_20869653_28533\Main.java:42: 错误: 需要class, interface或enum
                    que.push(temp);
                    ^
0_0_20869653_28533\Main.java:43: 错误: 需要class, interface或enum
                    vis[fx][fy] = 1;
                    ^
0_0_20869653_28533\Main.java:44: 错误: 需要class, interface或enum
                }
                ^
0_0_20869653_28533\Main.java:53: 错误: 需要class, interface或enum
                            else               //向左走
                            ^
0_0_20869653_28533\Main.java:55: 错误: 需要class, interface或enum
                            if(fy >= 0 && fy < N && map[fx][fy] != '*' && !vis[fx][fy])  //判断走过楼梯之后的那个是否可以走
                            ^
0_0_20869653_28533\Main.java:58: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                ^
0_0_20869653_28533\Main.java:58: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                             ^
0_0_20869653_28533\Main.java:58: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                                          ^
0_0_20869653_28533\Main.java:59: 错误: 需要class, interface或enum
                                que.push(temp);
                                ^
0_0_20869653_28533\Main.java:60: 错误: 需要class, interface或enum
                                vis[fx][fy] = 1;
                                ^
0_0_20869653_28533\Main.java:61: 错误: 需要class, interface或enum
                            }
                            ^
0_0_20869653_28533\Main.java:66: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                            ^
0_0_20869653_28533\Main.java:66: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                                             ^
0_0_20869653_28533\Main.java:66: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                                                              ^
0_0_20869653_28533\Main.java:67: 错误: 需要class, interface或enum
                            que.push(temp);
                            ^
0_0_20869653_28533\Main.java:68: 错误: 需要class, interface或enum
                        }
                        ^
0_0_20869653_28533\Main.java:76: 错误: 需要class, interface或enum
                            else                //向上的情况
                            ^
0_0_20869653_28533\Main.java:78: 错误: 需要class, interface或enum
                            if(fx >= 0 && fx < M && map[fx][fy] != '*' && !vis[fx][fy])  //同上
                            ^
0_0_20869653_28533\Main.java:81: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                ^
0_0_20869653_28533\Main.java:81: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                             ^
0_0_20869653_28533\Main.java:81: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                                          ^
0_0_20869653_28533\Main.java:82: 错误: 需要class, interface或enum
                                que.push(temp);
                                ^
0_0_20869653_28533\Main.java:83: 错误: 需要class, interface或enum
                                vis[fx][fy] = 1;
                                ^
0_0_20869653_28533\Main.java:84: 错误: 需要class, interface或enum
                            }
                            ^
0_0_20869653_28533\Main.java:89: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                            ^
0_0_20869653_28533\Main.java:89: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                                             ^
0_0_20869653_28533\Main.java:89: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                                                              ^
0_0_20869653_28533\Main.java:90: 错误: 需要class, interface或enum
                            que.push(temp);
                            ^
0_0_20869653_28533\Main.java:91: 错误: 需要class, interface或enum
                        }
                        ^
0_0_20869653_28533\Main.java:102: 错误: 需要class, interface或enum
                            else
                            ^
0_0_20869653_28533\Main.java:104: 错误: 需要class, interface或enum
                            if(fx >= 0 && fx < M && map[fx][fy] != '*' && !vis[fx][fy])
                            ^
0_0_20869653_28533\Main.java:107: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                ^
0_0_20869653_28533\Main.java:107: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                             ^
0_0_20869653_28533\Main.java:107: 错误: 需要class, interface或enum
                                temp.x = fx; temp.y = fy; temp.time = node.time + 1;
                                                          ^
0_0_20869653_28533\Main.java:108: 错误: 需要class, interface或enum
                                que.push(temp);
                                ^
0_0_20869653_28533\Main.java:109: 错误: 需要class, interface或enum
                                vis[fx][fy] = 1;
                                ^
0_0_20869653_28533\Main.java:110: 错误: 需要class, interface或enum
                            }
                            ^
0_0_20869653_28533\Main.java:115: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y = node.y; temp.time = node.time + 1;
                            ^
0_0_20869653_28533\Main.java:115: 错误: 需要class, interface或enum
                            temp.x = node.x; temp.y


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 12:54:20, Gzip enabled