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_35648951_20930\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_35648951_20930\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_35648951_20930\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_35648951_20930\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_35648951_20930\Main.java:4: 错误: 非法字符: '#'
#include <cstring>
^
0_0_35648951_20930\Main.java:5: 错误: 非法字符: '#'
#include <queue>
^
0_0_35648951_20930\Main.java:9: 错误: 需要class, interface或enum
const int maxn = 55;
^
0_0_35648951_20930\Main.java:10: 错误: 需要class, interface或enum
int map[maxn][maxn][maxn], a, b, c, t;
^
0_0_35648951_20930\Main.java:11: 错误: 需要class, interface或enum
int dx[] = {1, -1, 0, 0, 0, 0};
^
0_0_35648951_20930\Main.java:12: 错误: 需要class, interface或enum
int dy[] = {0, 0, 1, -1, 0, 0};
^
0_0_35648951_20930\Main.java:13: 错误: 需要class, interface或enum
int dz[] = {0, 0, 0, 0, 1, -1};
^
0_0_35648951_20930\Main.java:14: 错误: 需要class, interface或enum
bool visited[maxn][maxn][maxn];
^
0_0_35648951_20930\Main.java:15: 错误: 需要class, interface或enum
struct node {
^
0_0_35648951_20930\Main.java:17: 错误: 需要class, interface或enum
};
^
0_0_35648951_20930\Main.java:20: 错误: 需要class, interface或enum
bool islegal(int x, int y, int z) {
^
0_0_35648951_20930\Main.java:23: 错误: 需要class, interface或enum
    return 1;
    ^
0_0_35648951_20930\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_35648951_20930\Main.java:29: 错误: 需要class, interface或enum
    node q, p;
    ^
0_0_35648951_20930\Main.java:31: 错误: 需要class, interface或enum
    p.x = 1;
    ^
0_0_35648951_20930\Main.java:32: 错误: 需要class, interface或enum
    p.y = 1;
    ^
0_0_35648951_20930\Main.java:33: 错误: 需要class, interface或enum
    p.z = 1;
    ^
0_0_35648951_20930\Main.java:34: 错误: 需要class, interface或enum
    p.step = 0;
    ^
0_0_35648951_20930\Main.java:35: 错误: 需要class, interface或enum
    visited[1][1][1] = 1;
    ^
0_0_35648951_20930\Main.java:37: 错误: 需要class, interface或enum
    Q.push(p);
    ^
0_0_35648951_20930\Main.java:39: 错误: 需要class, interface或enum
    while (!Q.empty()) {
    ^
0_0_35648951_20930\Main.java:41: 错误: 需要class, interface或enum
        Q.pop();       //弹出队首元素
        ^
0_0_35648951_20930\Main.java:42: 错误: 需要class, interface或enum
        if (p.x == a && p.y == b && p.z == c && p.step <= t) return p.step;  //到达终点
        ^
0_0_35648951_20930\Main.java:43: 错误: 需要class, interface或enum
        for (int i = 0; i < 6; i++) {  //6个方向搜索
        ^
0_0_35648951_20930\Main.java:43: 错误: 需要class, interface或enum
        for (int i = 0; i < 6; i++) {  //6个方向搜索
                        ^
0_0_35648951_20930\Main.java:43: 错误: 需要class, interface或enum
        for (int i = 0; i < 6; i++) {  //6个方向搜索
                               ^
0_0_35648951_20930\Main.java:45: 错误: 需要class, interface或enum
            q.x += dx[i];
            ^
0_0_35648951_20930\Main.java:46: 错误: 需要class, interface或enum
            q.y += dy[i];
            ^
0_0_35648951_20930\Main.java:47: 错误: 需要class, interface或enum
            q.z += dz[i];
            ^
0_0_35648951_20930\Main.java:49: 错误: 需要class, interface或enum
            if (!visited[q.x][q.y][q.z] && (islegal(q.x, q.y, q.z))) {
            ^
0_0_35648951_20930\Main.java:51: 错误: 需要class, interface或enum
                q.step = p.step + 1;
                ^
0_0_35648951_20930\Main.java:53: 错误: 需要class, interface或enum
                if (abs(q.x - a) + abs(q.y - b) + abs(q.z - c) + q.step > t) continue; //最短距离都无法满足要求就放弃这个方向
                ^
0_0_35648951_20930\Main.java:54: 错误: 需要class, interface或enum
                Q.push(q);
                ^
0_0_35648951_20930\Main.java:55: 错误: 需要class, interface或enum
            }
            ^
0_0_35648951_20930\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_35648951_20930\Main.java:63: 错误: 需要class, interface或enum
    scanf("%d", &k);
    ^
0_0_35648951_20930\Main.java:64: 错误: 需要class, interface或enum
    while (k--) {
    ^
0_0_35648951_20930\Main.java:66: 错误: 需要class, interface或enum
        for (int i = 1; i <= a; i++)
        ^
0_0_35648951_20930\Main.java:66: 错误: 需要class, interface或enum
        for (int i = 1; i <= a; i++)
                        ^
0_0_35648951_20930\Main.java:66: 错误: 需要class, interface或enum
        for (int i = 1; i <= a; i++)
                                ^
0_0_35648951_20930\Main.java:67: 错误: 需要class, interface或enum
            for (int j = 1; j <= b; j++)
                            ^
0_0_35648951_20930\Main.java:67: 错误: 需要class, interface或enum
            for (int j = 1; j <= b; j++)
                                    ^
0_0_35648951_20930\Main.java:68: 错误: 需要class, interface或enum
                for (int k = 1; k <= c; k++)
                                ^
0_0_35648951_20930\Main.java:68: 错误: 需要class, interface或enum
                for (int k = 1; k <= c; k++)
                                        ^
0_0_35648951_20930\Main.java:70: 错误: 需要class, interface或enum
        memset(visited, 0, sizeof(visited));
        ^
0_0_35648951_20930\Main.java:72: 错误: 需要class, interface或enum
        printf("%d\n", bfs());
        ^
0_0_35648951_20930\Main.java:73: 错误: 需要class, interface或enum
    }
    ^
0_0_35648951_20930\Main.java:75: 错误: 需要class, interface或enum
}
^
52 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-09 04:53:57, Gzip enabled