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_28236860_21603\Main.java:4: 错误: 非法的类型开始
    while(in.hasNext()) {
    ^
0_0_28236860_21603\Main.java:4: 错误: 需要<标识符>
    while(in.hasNext()) {
                    ^
0_0_28236860_21603\Main.java:4: 错误: 需要';'
    while(in.hasNext()) {
                     ^
0_0_28236860_21603\Main.java:4: 错误: 非法的类型开始
    while(in.hasNext()) {
                      ^
0_0_28236860_21603\Main.java:4: 错误: 需要<标识符>
    while(in.hasNext()) {
                       ^
0_0_28236860_21603\Main.java:4: 错误: 需要';'
    while(in.hasNext()) {
                         ^
0_0_28236860_21603\Main.java:5: 错误: 非法的类型开始
        n=in.nextInt();
         ^
0_0_28236860_21603\Main.java:5: 错误: 需要';'
        n=in.nextInt();
            ^
0_0_28236860_21603\Main.java:5: 错误: 方法声明无效; 需要返回类型
        n=in.nextInt();
             ^
0_0_28236860_21603\Main.java:6: 错误: 需要<标识符>
        m=in.nextInt();
         ^
0_0_28236860_21603\Main.java:8: 错误: 非法的类型开始
        for(int i=0;i<n;i++) {
        ^
0_0_28236860_21603\Main.java:8: 错误: 需要')'
        for(int i=0;i<n;i++) {
                 ^
0_0_28236860_21603\Main.java:8: 错误: 非法的类型开始
        for(int i=0;i<n;i++) {
                  ^
0_0_28236860_21603\Main.java:8: 错误: 需要<标识符>
        for(int i=0;i<n;i++) {
                   ^
0_0_28236860_21603\Main.java:8: 错误: 需要';'
        for(int i=0;i<n;i++) {
                    ^
0_0_28236860_21603\Main.java:8: 错误: 需要>
        for(int i=0;i<n;i++) {
                       ^
0_0_28236860_21603\Main.java:8: 错误: 需要'('
        for(int i=0;i<n;i++) {
                         ^
0_0_28236860_21603\Main.java:20: 错误: 需要']'
    vist[ex][ey]=true;
         ^
0_0_28236860_21603\Main.java:20: 错误: 需要';'
    vist[ex][ey]=true;
           ^
0_0_28236860_21603\Main.java:20: 错误: 需要<标识符>
    vist[ex][ey]=true;
               ^
0_0_28236860_21603\Main.java:20: 错误: 非法的类型开始
    vist[ex][ey]=true;
                ^
0_0_28236860_21603\Main.java:20: 错误: 需要<标识符>
    vist[ex][ey]=true;
                 ^
0_0_28236860_21603\Main.java:21: 错误: 需要<标识符>
    minn=1000000000;
        ^
0_0_28236860_21603\Main.java:22: 错误: 方法声明无效; 需要返回类型
    dfs(ex,ey,0);//深搜
    ^
0_0_28236860_21603\Main.java:22: 错误: 需要<标识符>
    dfs(ex,ey,0);//深搜
          ^
0_0_28236860_21603\Main.java:22: 错误: 需要<标识符>
    dfs(ex,ey,0);//深搜
             ^
0_0_28236860_21603\Main.java:22: 错误: 非法的类型开始
    dfs(ex,ey,0);//深搜
              ^
0_0_28236860_21603\Main.java:23: 错误: 非法的类型开始
    if(minn==1000000000) {
    ^
0_0_28236860_21603\Main.java:23: 错误: 需要<标识符>
    if(minn==1000000000) {
           ^
0_0_28236860_21603\Main.java:23: 错误: 需要';'
    if(minn==1000000000) {
             ^
0_0_28236860_21603\Main.java:23: 错误: 非法的类型开始
    if(minn==1000000000) {
                       ^
0_0_28236860_21603\Main.java:23: 错误: 需要<标识符>
    if(minn==1000000000) {
                        ^
0_0_28236860_21603\Main.java:23: 错误: 需要';'
    if(minn==1000000000) {
                          ^
0_0_28236860_21603\Main.java:24: 错误: 非法的类型开始
        System.out.println("Poor ANGEL has to stay in the prison all his life.");
              ^
0_0_28236860_21603\Main.java:24: 错误: 需要';'
        System.out.println("Poor ANGEL has to stay in the prison all his life.");
                  ^
0_0_28236860_21603\Main.java:24: 错误: 方法声明无效; 需要返回类型
        System.out.println("Poor ANGEL has to stay in the prison all his life.");
                   ^
0_0_28236860_21603\Main.java:24: 错误: 非法的类型开始
        System.out.println("Poor ANGEL has to stay in the prison all his life.");
                           ^
0_0_28236860_21603\Main.java:26: 错误: 需要class, interface或enum
    else {
    ^
0_0_28236860_21603\Main.java:28: 错误: 需要class, interface或enum
    }
    ^
0_0_28236860_21603\Main.java:30: 错误: 需要class, interface或enum
    public static void dfs(int x,int y,int time) {
                  ^
0_0_28236860_21603\Main.java:32: 错误: 需要class, interface或enum
        if(a[x][y]=='r') {
        ^
0_0_28236860_21603\Main.java:35: 错误: 需要class, interface或enum
            return ; //所有情况下都遍历完返回
            ^
0_0_28236860_21603\Main.java:36: 错误: 需要class, interface或enum
        }
        ^
0_0_28236860_21603\Main.java:39: 错误: 需要class, interface或enum
        for(int i=0;i<4;i++) {
        ^
0_0_28236860_21603\Main.java:39: 错误: 需要class, interface或enum
        for(int i=0;i<4;i++) {
                    ^
0_0_28236860_21603\Main.java:39: 错误: 需要class, interface或enum
        for(int i=0;i<4;i++) {
                        ^
0_0_28236860_21603\Main.java:41: 错误: 需要class, interface或enum
            int ny=y+location[i][1];
            ^
0_0_28236860_21603\Main.java:42: 错误: 需要class, interface或enum
            if(nx>=0&&nx<n&&ny>=0&&ny<m&&!vist[nx][ny]&&a[nx][ny]!='#') { //数组下标规范
            ^
0_0_28236860_21603\Main.java:45: 错误: 需要class, interface或enum
                else if(a[nx][ny]=='r'||a[nx][ny]=='.')
                ^
0_0_28236860_21603\Main.java:47: 错误: 需要class, interface或enum
                vist[nx][ny]=false;// 恢复未访问状态
                ^
0_0_28236860_21603\Main.java:48: 错误: 需要class, interface或enum
        }
        ^
51 个错误


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-26 18:46:25, Gzip enabled