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_32380250_986\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_32380250_986\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_32380250_986\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_32380250_986\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_32380250_986\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_32380250_986\Main.java:6: 错误: 需要class, interface或enum
int n,m,y,loop,step,beloop;
^
0_0_32380250_986\Main.java:7: 错误: 需要class, interface或enum
char mp[11][11];
^
0_0_32380250_986\Main.java:8: 错误: 需要class, interface或enum
int visit[11][11];
^
0_0_32380250_986\Main.java:9: 错误: 需要class, interface或enum
bool judge = false;
^
0_0_32380250_986\Main.java:10: 错误: 需要class, interface或enum
bool check(int x, int y)
^
0_0_32380250_986\Main.java:12: 错误: 需要class, interface或enum
    if(x<0||x>=n||y<0||y>=m){ judge = true ;return false;}
                                            ^
0_0_32380250_986\Main.java:12: 错误: 需要class, interface或enum
    if(x<0||x>=n||y<0||y>=m){ judge = true ;return false;}
                                                         ^
0_0_32380250_986\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_32380250_986\Main.java:18: 错误: 需要class, interface或enum
    step = s;
    ^
0_0_32380250_986\Main.java:19: 错误: 需要class, interface或enum
    if(!judge){
    ^
0_0_32380250_986\Main.java:22: 错误: 需要class, interface或enum
            if(mp[x][y] == 'N') dfs(x-1,y,s+1);
            ^
0_0_32380250_986\Main.java:23: 错误: 需要class, interface或enum
            else if(mp[x][y] == 'S') dfs(x+1,y,s+1);
            ^
0_0_32380250_986\Main.java:24: 错误: 需要class, interface或enum
            else if(mp[x][y] == 'E') dfs(x,y+1,s+1);
            ^
0_0_32380250_986\Main.java:25: 错误: 需要class, interface或enum
            else if(mp[x][y] == 'W') dfs(x,y-1,s+1);
            ^
0_0_32380250_986\Main.java:26: 错误: 需要class, interface或enum
        }else{
        ^
0_0_32380250_986\Main.java:28: 错误: 需要class, interface或enum
            loop = s - visit[x][y] ;
            ^
0_0_32380250_986\Main.java:29: 错误: 需要class, interface或enum
        }
        ^
0_0_32380250_986\Main.java:37: 错误: 需要class, interface或enum
        scanf("%d",&y);y--;
                       ^
0_0_32380250_986\Main.java:38: 错误: 需要class, interface或enum
        for(int i = 0;i<n;++i)
        ^
0_0_32380250_986\Main.java:38: 错误: 需要class, interface或enum
        for(int i = 0;i<n;++i)
                      ^
0_0_32380250_986\Main.java:38: 错误: 需要class, interface或enum
        for(int i = 0;i<n;++i)
                          ^
0_0_32380250_986\Main.java:40: 错误: 需要class, interface或enum
        judge = false;
        ^
0_0_32380250_986\Main.java:41: 错误: 需要class, interface或enum
        memset(visit,0,sizeof(visit));
        ^
0_0_32380250_986\Main.java:42: 错误: 需要class, interface或enum
        dfs(0,y,1);
        ^
0_0_32380250_986\Main.java:43: 错误: 需要class, interface或enum
        if(judge) printf("%d step(s) to exit\n",step);
        ^
0_0_32380250_986\Main.java:44: 错误: 需要class, interface或enum
        else printf("%d step(s) before a loop of %d step(s)\n",beloop,loop);
        ^
0_0_32380250_986\Main.java:46: 错误: 需要class, interface或enum
    }
    ^
0_0_32380250_986\Main.java:48: 错误: 需要class, interface或enum
}
^
33 个错误


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-17 04:32:47, Gzip enabled