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_39039477_4566\Main.java:1: 错误: 非法字符: '#'
#include "iostream"
^
0_0_39039477_4566\Main.java:1: 错误: 需要class, interface或enum
#include "iostream"
         ^
0_0_39039477_4566\Main.java:3: 错误: 需要class, interface或enum
int a,b,n,m;
^
0_0_39039477_4566\Main.java:4: 错误: 需要class, interface或enum
struct wxl
^
0_0_39039477_4566\Main.java:7: 错误: 需要class, interface或enum
    int s;
    ^
0_0_39039477_4566\Main.java:8: 错误: 需要class, interface或enum
}ht[110];
^
0_0_39039477_4566\Main.java:9: 错误: 需要class, interface或enum
bool panduan(int h)//判断机器人是否会相撞
^
0_0_39039477_4566\Main.java:14: 错误: 需要class, interface或enum
        return false;
        ^
0_0_39039477_4566\Main.java:15: 错误: 需要class, interface或enum
    }
    ^
0_0_39039477_4566\Main.java:16: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                ^
0_0_39039477_4566\Main.java:16: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                     ^
0_0_39039477_4566\Main.java:19: 错误: 需要class, interface或enum
        if(ht[i].x==ht[h].x&&ht[i].y==ht[h].y)
        ^
0_0_39039477_4566\Main.java:22: 错误: 需要class, interface或enum
            return false;
            ^
0_0_39039477_4566\Main.java:23: 错误: 需要class, interface或enum
        }
        ^
0_0_39039477_4566\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_39039477_4566\Main.java:30: 错误: 需要class, interface或enum
    bool flag;
    ^
0_0_39039477_4566\Main.java:31: 错误: 需要class, interface或enum
    string str;
    ^
0_0_39039477_4566\Main.java:32: 错误: 需要class, interface或enum
    cin>>k;
    ^
0_0_39039477_4566\Main.java:33: 错误: 需要class, interface或enum
    while(k--)
    ^
0_0_39039477_4566\Main.java:36: 错误: 需要class, interface或enum
        for(i=1;i<=n;i++)//将方向转为数字存
        ^
0_0_39039477_4566\Main.java:36: 错误: 需要class, interface或enum
        for(i=1;i<=n;i++)//将方向转为数字存
                ^
0_0_39039477_4566\Main.java:36: 错误: 需要class, interface或enum
        for(i=1;i<=n;i++)//将方向转为数字存
                     ^
0_0_39039477_4566\Main.java:39: 错误: 需要class, interface或enum
            if(str=="N")ht[i].s=0;
            ^
0_0_39039477_4566\Main.java:40: 错误: 需要class, interface或enum
            else if(str=="E")ht[i].s=1;
            ^
0_0_39039477_4566\Main.java:41: 错误: 需要class, interface或enum
            else if(str=="S")ht[i].s=2;
            ^
0_0_39039477_4566\Main.java:42: 错误: 需要class, interface或enum
            else if(str=="W")ht[i].s=3;
            ^
0_0_39039477_4566\Main.java:43: 错误: 需要class, interface或enum
        }
        ^
0_0_39039477_4566\Main.java:45: 错误: 需要class, interface或enum
        for(i=0;i<m;i++)
        ^
0_0_39039477_4566\Main.java:45: 错误: 需要class, interface或enum
        for(i=0;i<m;i++)
                ^
0_0_39039477_4566\Main.java:45: 错误: 需要class, interface或enum
        for(i=0;i<m;i++)
                    ^
0_0_39039477_4566\Main.java:48: 错误: 需要class, interface或enum
            if(str=="F")//F最为简单,先判断
            ^
0_0_39039477_4566\Main.java:52: 错误: 需要class, interface或enum
                    for(j=0;j<p;j++)
                            ^
0_0_39039477_4566\Main.java:52: 错误: 需要class, interface或enum
                    for(j=0;j<p;j++)
                                ^
0_0_39039477_4566\Main.java:55: 错误: 需要class, interface或enum
                        if(ht[t].s==1)ht[t].x++;
                        ^
0_0_39039477_4566\Main.java:56: 错误: 需要class, interface或enum
                        if(ht[t].s==2)ht[t].y--;
                        ^
0_0_39039477_4566\Main.java:57: 错误: 需要class, interface或enum
                        if(ht[t].s==3)ht[t].x--;
                        ^
0_0_39039477_4566\Main.java:58: 错误: 需要class, interface或enum
                        flag=panduan(t);//此处开始判断
                        ^
0_0_39039477_4566\Main.java:59: 错误: 需要class, interface或enum
                        if(!flag)break;//因为在函数中写了输出函数,此处直接退出
                        ^
0_0_39039477_4566\Main.java:60: 错误: 需要class, interface或enum
                    }
                    ^
0_0_39039477_4566\Main.java:66: 错误: 需要class, interface或enum
            }
            ^
0_0_39039477_4566\Main.java:70: 错误: 需要class, interface或enum
            }
            ^
0_0_39039477_4566\Main.java:73: 错误: 需要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-11-26 14:09:48, Gzip enabled