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_36180502_11490\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_36180502_11490\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_36180502_11490\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_36180502_11490\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_36180502_11490\Main.java:4: 错误: 非法字符: '#'
#define N 100
^
0_0_36180502_11490\Main.java:6: 错误: 需要class, interface或enum
char a[N][N];
^
0_0_36180502_11490\Main.java:7: 错误: 需要class, interface或enum
int n,m;
^
0_0_36180502_11490\Main.java:8: 错误: 需要class, interface或enum
int dx[8]={0,0,1,1,1,-1,-1,-1};
^
0_0_36180502_11490\Main.java:9: 错误: 需要class, interface或enum
int dy[8]={1,-1,0,-1,1,0,1,-1};//根据题目自己定义八个方向,有时候是定义四个方向 根据题目意思决定,此种类型题目都需自己定义方向
^
0_0_36180502_11490\Main.java:10: 错误: 需要class, interface或enum
void dfs(int x,int y)
^
0_0_36180502_11490\Main.java:13: 错误: 需要class, interface或enum
    for(int i=0;i<8;i++)
    ^
0_0_36180502_11490\Main.java:13: 错误: 需要class, interface或enum
    for(int i=0;i<8;i++)
                ^
0_0_36180502_11490\Main.java:13: 错误: 需要class, interface或enum
    for(int i=0;i<8;i++)
                    ^
0_0_36180502_11490\Main.java:16: 错误: 需要class, interface或enum
        tempy=y+dy[i];
        ^
0_0_36180502_11490\Main.java:17: 错误: 需要class, interface或enum
        if(tempx>=0&&tempy>=0&&tempx<n&&tempy<m&&a[tempx][tempy]=='@')//确定满足条件时进行搜索,否则跳出
        ^
0_0_36180502_11490\Main.java:20: 错误: 需要class, interface或enum
            dfs(tempx,tempy);
            ^
0_0_36180502_11490\Main.java:21: 错误: 需要class, interface或enum
        }
        ^
0_0_36180502_11490\Main.java:24: 错误: 需要class, interface或enum
    }
    ^
0_0_36180502_11490\Main.java:29: 错误: 需要class, interface或enum
    while(cin>>n>>m,n!=0,m!=0)
    ^
0_0_36180502_11490\Main.java:32: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
        ^
0_0_36180502_11490\Main.java:32: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                    ^
0_0_36180502_11490\Main.java:32: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                        ^
0_0_36180502_11490\Main.java:34: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
        ^
0_0_36180502_11490\Main.java:34: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                    ^
0_0_36180502_11490\Main.java:34: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++)
                        ^
0_0_36180502_11490\Main.java:36: 错误: 需要class, interface或enum
            for(int j=0;j<m;j++)
                        ^
0_0_36180502_11490\Main.java:36: 错误: 需要class, interface或enum
            for(int j=0;j<m;j++)
                            ^
0_0_36180502_11490\Main.java:41: 错误: 需要class, interface或enum
                    dfs(i,j);
                    ^
0_0_36180502_11490\Main.java:42: 错误: 需要class, interface或enum
                }
                ^
0_0_36180502_11490\Main.java:46: 错误: 需要class, interface或enum
    }
    ^
0_0_36180502_11490\Main.java:48: 错误: 需要class, interface或enum
}
^
31 个错误


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 00:11:10, Gzip enabled