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_27521670_1807\Main.java:2: 错误: 非法字符: '#'
#include <iostream>
^
0_0_27521670_1807\Main.java:2: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_27521670_1807\Main.java:4: 错误: 非法字符: '#'
#include <cstring>
^
0_0_27521670_1807\Main.java:8: 错误: 需要class, interface或enum
char a[10][10];
^
0_0_27521670_1807\Main.java:10: 错误: 需要class, interface或enum
int n,m,t;
^
0_0_27521670_1807\Main.java:12: 错误: 需要class, interface或enum
int sx,sy,ex,ey;
^
0_0_27521670_1807\Main.java:14: 错误: 需要class, interface或enum
bool flag;
^
0_0_27521670_1807\Main.java:16: 错误: 需要class, interface或enum
int dir[4][2]={0,1,1,0,0,-1,-1,0};
^
0_0_27521670_1807\Main.java:18: 错误: 需要class, interface或enum
int abs(int x)
^
0_0_27521670_1807\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_27521670_1807\Main.java:34: 错误: 需要class, interface或enum
    if(x==ex&&y==ey&&time==t)
    ^
0_0_27521670_1807\Main.java:40: 错误: 需要class, interface或enum
        return ;
        ^
0_0_27521670_1807\Main.java:42: 错误: 需要class, interface或enum
    }
    ^
0_0_27521670_1807\Main.java:48: 错误: 需要class, interface或enum
    int temp=(t-time)-(abs(x-ex)+abs(y-ey));
    ^
0_0_27521670_1807\Main.java:50: 错误: 需要class, interface或enum
    if(temp<0||temp&1)
    ^
0_0_27521670_1807\Main.java:54: 错误: 需要class, interface或enum
    for(int i=0;i<4;i++)
    ^
0_0_27521670_1807\Main.java:54: 错误: 需要class, interface或enum
    for(int i=0;i<4;i++)
                ^
0_0_27521670_1807\Main.java:54: 错误: 需要class, interface或enum
    for(int i=0;i<4;i++)
                    ^
0_0_27521670_1807\Main.java:60: 错误: 需要class, interface或enum
        int yy=y+dir[i][1];
        ^
0_0_27521670_1807\Main.java:62: 错误: 需要class, interface或enum
        if(a[xx][yy]!='X')
        ^
0_0_27521670_1807\Main.java:68: 错误: 需要class, interface或enum
            DFS(xx,yy,time+1);
            ^
0_0_27521670_1807\Main.java:70: 错误: 需要class, interface或enum
            a[xx][yy]='.';
            ^
0_0_27521670_1807\Main.java:72: 错误: 需要class, interface或enum
            if(flag)
            ^
0_0_27521670_1807\Main.java:76: 错误: 需要class, interface或enum
        }
        ^
0_0_27521670_1807\Main.java:94: 错误: 需要class, interface或enum
        int wall=0;
        ^
0_0_27521670_1807\Main.java:96: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++)
        ^
0_0_27521670_1807\Main.java:96: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++)
                     ^
0_0_27521670_1807\Main.java:96: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++)
                          ^
0_0_27521670_1807\Main.java:98: 错误: 需要class, interface或enum
            for(int j=0; j<m; j++)
                         ^
0_0_27521670_1807\Main.java:98: 错误: 需要class, interface或enum
            for(int j=0; j<m; j++)
                              ^
0_0_27521670_1807\Main.java:104: 错误: 需要class, interface或enum
                if(a[i][j]=='S')
                ^
0_0_27521670_1807\Main.java:108: 错误: 需要class, interface或enum
                else if(a[i][j]=='D')
                ^
0_0_27521670_1807\Main.java:112: 错误: 需要class, interface或enum
                else if(a[i][j]=='X')
                ^
0_0_27521670_1807\Main.java:116: 错误: 需要class, interface或enum
            }
            ^
0_0_27521670_1807\Main.java:124: 错误: 需要class, interface或enum
            continue;
            ^
0_0_27521670_1807\Main.java:126: 错误: 需要class, interface或enum
        }
        ^
0_0_27521670_1807\Main.java:130: 错误: 需要class, interface或enum
        a[sx][sy]='X';
        ^
0_0_27521670_1807\Main.java:132: 错误: 需要class, interface或enum
        DFS(sx,sy,0);
        ^
0_0_27521670_1807\Main.java:134: 错误: 需要class, interface或enum
        if(flag)
        ^
0_0_27521670_1807\Main.java:138: 错误: 需要class, interface或enum
        else
        ^
0_0_27521670_1807\Main.java:142: 错误: 需要class, interface或enum
    }
    ^
0_0_27521670_1807\Main.java:146: 错误: 需要class, interface或enum
}
^
42 个错误


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 11:39:03, Gzip enabled