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_39393827_5104\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_39393827_5104\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_39393827_5104\Main.java:3: 错误: 需要class, interface或enum
int x,y,vis[30][30];char c[20][20];int m,n,ans,flag;
^
0_0_39393827_5104\Main.java:3: 错误: 需要class, interface或enum
int x,y,vis[30][30];char c[20][20];int m,n,ans,flag;
                    ^
0_0_39393827_5104\Main.java:3: 错误: 需要class, interface或enum
int x,y,vis[30][30];char c[20][20];int m,n,ans,flag;
                                   ^
0_0_39393827_5104\Main.java:4: 错误: 需要class, interface或enum
int dx[]={1,0,-1,0};int dy[]={0,1,0,-1};
^
0_0_39393827_5104\Main.java:4: 错误: 需要class, interface或enum
int dx[]={1,0,-1,0};int dy[]={0,1,0,-1};
                    ^
0_0_39393827_5104\Main.java:5: 错误: 需要class, interface或enum
void dfs(int x,int y,int cnt)
^
0_0_39393827_5104\Main.java:8: 错误: 需要class, interface或enum
    if(x<0||x>=m||y<0||y>=n)return;
    ^
0_0_39393827_5104\Main.java:9: 错误: 需要class, interface或enum
    if(c[x][y]=='T'){flag=1;if(ans==0||cnt<ans)ans=cnt;return;}
    ^
0_0_39393827_5104\Main.java:9: 错误: 需要class, interface或enum
    if(c[x][y]=='T'){flag=1;if(ans==0||cnt<ans)ans=cnt;return;}
                            ^
0_0_39393827_5104\Main.java:9: 错误: 需要class, interface或enum
    if(c[x][y]=='T'){flag=1;if(ans==0||cnt<ans)ans=cnt;return;}
                                                       ^
0_0_39393827_5104\Main.java:9: 错误: 需要class, interface或enum
    if(c[x][y]=='T'){flag=1;if(ans==0||cnt<ans)ans=cnt;return;}
                                                              ^
0_0_39393827_5104\Main.java:10: 错误: 需要class, interface或enum
    for(int i=0;i<4;i++)
                ^
0_0_39393827_5104\Main.java:10: 错误: 需要class, interface或enum
    for(int i=0;i<4;i++)
                    ^
0_0_39393827_5104\Main.java:12: 错误: 需要class, interface或enum
        int xx=x+dx[i];int yy=y+dy[i];
                       ^
0_0_39393827_5104\Main.java:13: 错误: 需要class, interface或enum
        if(c[xx][yy]=='|'||c[xx][yy]=='-')
        ^
0_0_39393827_5104\Main.java:16: 错误: 需要class, interface或enum
        else if(c[xx][yy]=='|'&&(i==1||i==3))continue;
        ^
0_0_39393827_5104\Main.java:17: 错误: 需要class, interface或enum
        else {vis[xx][yy]=1;xx+=dx[i];yy+=dy[i];}}
        ^
0_0_39393827_5104\Main.java:17: 错误: 需要class, interface或enum
        else {vis[xx][yy]=1;xx+=dx[i];yy+=dy[i];}}
                            ^
0_0_39393827_5104\Main.java:17: 错误: 需要class, interface或enum
        else {vis[xx][yy]=1;xx+=dx[i];yy+=dy[i];}}
                                      ^
0_0_39393827_5104\Main.java:17: 错误: 需要class, interface或enum
        else {vis[xx][yy]=1;xx+=dx[i];yy+=dy[i];}}
                                                ^
0_0_39393827_5104\Main.java:21: 错误: 需要class, interface或enum
            dfs(xx,yy,cnt+1);
            ^
0_0_39393827_5104\Main.java:22: 错误: 需要class, interface或enum
            vis[xx][yy]=0;
            ^
0_0_39393827_5104\Main.java:23: 错误: 需要class, interface或enum
        }
        ^
0_0_39393827_5104\Main.java:29: 错误: 需要class, interface或enum
    cin>>m>>n;
    ^
0_0_39393827_5104\Main.java:30: 错误: 需要class, interface或enum
    for(i=0;i<m;i++)
    ^
0_0_39393827_5104\Main.java:30: 错误: 需要class, interface或enum
    for(i=0;i<m;i++)
            ^
0_0_39393827_5104\Main.java:30: 错误: 需要class, interface或enum
    for(i=0;i<m;i++)
                ^
0_0_39393827_5104\Main.java:32: 错误: 需要class, interface或enum
        for(j=0;j<m;j++)
                ^
0_0_39393827_5104\Main.java:32: 错误: 需要class, interface或enum
        for(j=0;j<m;j++)
                    ^
0_0_39393827_5104\Main.java:35: 错误: 需要class, interface或enum
            if(c[i][j]=='S')
            ^
0_0_39393827_5104\Main.java:37: 错误: 需要class, interface或enum
                x=i;y=j;
                    ^
0_0_39393827_5104\Main.java:38: 错误: 需要class, interface或enum
            }
            ^
0_0_39393827_5104\Main.java:42: 错误: 需要class, interface或enum
cout<<ans;
^
0_0_39393827_5104\Main.java:43: 错误: 需要class, interface或enum
}
^
36 个错误


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-25 15:22:06, Gzip enabled