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_19781830_20052\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>  
^
0_0_19781830_20052\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>  
        ^
0_0_19781830_20052\Main.java:2: 错误: 非法字符: '#'
#include<cstring>  
^
0_0_19781830_20052\Main.java:3: 错误: 非法字符: '#'
#include<queue>  
^
0_0_19781830_20052\Main.java:4: 错误: 非法字符: '#'
#include<stack>  
^
0_0_19781830_20052\Main.java:7: 错误: 需要class, interface或enum
struct node  
^
0_0_19781830_20052\Main.java:10: 错误: 需要class, interface或enum
    node(int a,int b,int c):x(a),y(b),t(c) {}//构造函数  
    ^
0_0_19781830_20052\Main.java:14: 错误: 需要class, interface或enum
        y=b;  
        ^
0_0_19781830_20052\Main.java:15: 错误: 需要class, interface或enum
        t=c;  
        ^
0_0_19781830_20052\Main.java:16: 错误: 需要class, interface或enum
    }  
    ^
0_0_19781830_20052\Main.java:20: 错误: 需要class, interface或enum
    }  
    ^
0_0_19781830_20052\Main.java:23: 错误: 需要class, interface或enum
struct node1  
^
0_0_19781830_20052\Main.java:26: 错误: 需要class, interface或enum
};  
^
0_0_19781830_20052\Main.java:28: 错误: 需要class, interface或enum
int n,m;  
^
0_0_19781830_20052\Main.java:29: 错误: 需要class, interface或enum
char mat[105][105];  
^
0_0_19781830_20052\Main.java:30: 错误: 需要class, interface或enum
bool vis[105][105];  
^
0_0_19781830_20052\Main.java:31: 错误: 需要class, interface或enum
node1 matt[105][105];//记录父亲坐标  
^
0_0_19781830_20052\Main.java:32: 错误: 需要class, interface或enum
int dir[4][2]= {1,0,0,1,-1,0,0,-1};  
^
0_0_19781830_20052\Main.java:33: 错误: 需要class, interface或enum
bool flag;  
^
0_0_19781830_20052\Main.java:36: 错误: 需要class, interface或enum
void bfs()  
^
0_0_19781830_20052\Main.java:39: 错误: 需要class, interface或enum
    priority_queue<node> Q;  
    ^
0_0_19781830_20052\Main.java:40: 错误: 需要class, interface或enum
    node first=node(0,0,0);  
    ^
0_0_19781830_20052\Main.java:41: 错误: 需要class, interface或enum
    Q.push(first);  
    ^
0_0_19781830_20052\Main.java:42: 错误: 需要class, interface或enum
    vis[first.x][first.y]=1;  
    ^
0_0_19781830_20052\Main.java:43: 错误: 需要class, interface或enum
    matt[0][0].x=0;  
    ^
0_0_19781830_20052\Main.java:44: 错误: 需要class, interface或enum
    matt[0][0].y=0;  
    ^
0_0_19781830_20052\Main.java:45: 错误: 需要class, interface或enum
    while(!Q.empty())  
    ^
0_0_19781830_20052\Main.java:48: 错误: 需要class, interface或enum
        Q.pop();  
        ^
0_0_19781830_20052\Main.java:49: 错误: 需要class, interface或enum
        if(first.x==n-1&&first.y==m-1)  
        ^
0_0_19781830_20052\Main.java:52: 错误: 需要class, interface或enum
            printf("It takes %d seconds to reach the target position, let me show you the way.\n",first.t);  
            ^
0_0_19781830_20052\Main.java:53: 错误: 需要class, interface或enum
            stack<node1> S;//把路径存储在栈里  
            ^
0_0_19781830_20052\Main.java:54: 错误: 需要class, interface或enum
            node1 e;  
            ^
0_0_19781830_20052\Main.java:55: 错误: 需要class, interface或enum
            e.x=n-1;  
            ^
0_0_19781830_20052\Main.java:56: 错误: 需要class, interface或enum
            e.y=m-1;  
            ^
0_0_19781830_20052\Main.java:57: 错误: 需要class, interface或enum
            S.push(e);  
            ^
0_0_19781830_20052\Main.java:58: 错误: 需要class, interface或enum
            while(1)  
            ^
0_0_19781830_20052\Main.java:61: 错误: 需要class, interface或enum
                if(e.x==matt[e.x][e.y].x&&e.y==matt[e.x][e.y].y)  
                ^
0_0_19781830_20052\Main.java:64: 错误: 需要class, interface或enum
                }  
                ^
0_0_19781830_20052\Main.java:66: 错误: 需要class, interface或enum
                ee.x=matt[e.x][e.y].x;  
                ^
0_0_19781830_20052\Main.java:67: 错误: 需要class, interface或enum
                ee.y=matt[e.x][e.y].y;  
                ^
0_0_19781830_20052\Main.java:68: 错误: 需要class, interface或enum
                S.push(ee);  
                ^
0_0_19781830_20052\Main.java:69: 错误: 需要class, interface或enum
            }  
            ^
0_0_19781830_20052\Main.java:70: 错误: 需要class, interface或enum
            for(int i=1; i<=first.t; i++)//输出路径  
                         ^
0_0_19781830_20052\Main.java:70: 错误: 需要class, interface或enum
            for(int i=1; i<=first.t; i++)//输出路径  
                                     ^
0_0_19781830_20052\Main.java:73: 错误: 需要class, interface或enum
                if(mat[S.top().x][S.top().y]!='.')  
                ^
0_0_19781830_20052\Main.java:76: 错误: 需要class, interface或enum
                    mat[S.top().x][S.top().y]--;  
                    ^
0_0_19781830_20052\Main.java:77: 错误: 需要class, interface或enum
                    if(mat[S.top().x][S.top().y]=='0')  
                    ^
0_0_19781830_20052\Main.java:80: 错误: 需要class, interface或enum
                    }  
                    ^
0_0_19781830_20052\Main.java:85: 错误: 需要class, interface或enum
                    S.pop();  
                    ^
0_0_19781830_20052\Main.java:86: 错误: 需要class, interface或enum
                    printf("->(%d,%d)\n",S.top().x,S.top().y);  
                    ^
0_0_19781830_20052\Main.java:87: 错误: 需要class, interface或enum
                }  
                ^
0_0_19781830_20052\Main.java:91: 错误: 需要class, interface或enum
            break;  
            ^
0_0_19781830_20052\Main.java:92: 错误: 需要class, interface或enum
        }  
        ^
0_0_19781830_20052\Main.java:94: 错误: 需要class, interface或enum
        for(int i=0; i<4; i++)  
        ^
0_0_19781830_20052\Main.java:94: 错误: 需要class, interface或enum
        for(int i=0; i<4; i++)  
                     ^
0_0_19781830_20052\Main.java:94: 错误: 需要class, interface或enum
        for(int i=0; i<4; i++)  
                          ^
0_0_19781830_20052\Main.java:97: 错误: 需要class, interface或enum
            int ty=first.y+dir[i][1];  
            ^
0_0_19781830_20052\Main.java:98: 错误: 需要class, interface或enum
            if(tx>=n||tx<0||ty>=m||ty<0||vis[tx][ty]==1)  
            ^
0_0_19781830_20052\Main.java:101: 错误: 需要class, interface或enum
            }  
            ^
0_0_19781830_20052\Main.java:105: 错误: 需要class, interface或enum
            }  
            ^
0_0_19781830_20052\Main.java:109: 错误: 需要class, interface或enum
                matt[tx][ty].x=first.x;  
                ^
0_0_19781830_20052\Main.java:110: 错误: 需要class, interface或enum
                matt[tx][ty].y=first.y;  
                ^
0_0_19781830_20052\Main.java:111: 错误: 需要class, interface或enum
                vis[tx][ty]=1;  
                ^
0_0_19781830_20052\Main.java:112: 错误: 需要class, interface或enum
                Q.push(next);  
                ^
0_0_19781830_20052\Main.java:113: 错误: 需要class, interface或enum
            }  
            ^
0_0_19781830_20052\Main.java:117: 错误: 需要class, interface或enum
                vis[tx][ty]=1;  
                ^
0_0_19781830_20052\Main.java:118: 错误: 需要class, interface或enum
                matt[tx][ty].x=first.x;  
                ^
0_0_19781830_20052\Main.java:119: 错误: 需要class, interface或enum
                matt[tx][ty].y=first.y;  
                ^
0_0_19781830_20052\Main.java:120: 错误: 需要class, interface或enum
                Q.push(next);  
                ^
0_0_19781830_20052\Main.java:121: 错误: 需要class, interface或enum
            }  
            ^
0_0_19781830_20052\Main.java:128: 错误: 需要class, interface或enum
}  
^
0_0_19781830_20052\Main.java:134: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++)  
                     ^
0_0_19781830_20052\Main.java:134: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++)  
                          ^
0_0_19781830_20052\Main.java:137: 错误: 需要class, interface或enum
        }  
        ^
0_0_19781830_20052\Main.java:139: 错误: 需要class, interface或enum
        bfs();  
        ^
0_0_19781830_20052\Main.java:140: 错误: 需要class, interface或enum
    }  
    ^
0_0_19781830_20052\Main.java:142: 错误: 需要class, interface或enum
}  
^
77 个错误


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-02 08:26:07, Gzip enabled