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_23218645_22999\Main.java:16: 错误: 方法声明无效; 需要返回类型
    public SnakeGame() {
           ^
0_0_23218645_22999\Main.java:60: 错误: 需要')'
}
 ^
0_0_23218645_22999\Main.java:62: 错误: 不是语句
class SnakePanel extends JPanel{
      ^
0_0_23218645_22999\Main.java:62: 错误: 需要';'
class SnakePanel extends JPanel{
                ^
0_0_23218645_22999\Main.java:62: 错误: 不是语句
class SnakePanel extends JPanel{
                         ^
0_0_23218645_22999\Main.java:62: 错误: 需要';'
class SnakePanel extends JPanel{
                               ^
0_0_23218645_22999\Main.java:63: 错误: 非法的表达式开始
    private static final long serialVersionUID = 1L;
    ^
0_0_23218645_22999\Main.java:63: 错误: 非法的表达式开始
    private static final long serialVersionUID = 1L;
            ^
0_0_23218645_22999\Main.java:63: 错误: 需要';'
    private static final long serialVersionUID = 1L;
                  ^
0_0_23218645_22999\Main.java:68: 错误: 非法的表达式开始
    public static final int X_WIDTH = 40;
    ^
0_0_23218645_22999\Main.java:68: 错误: 非法的表达式开始
    public static final int X_WIDTH = 40;
           ^
0_0_23218645_22999\Main.java:68: 错误: 需要';'
    public static final int X_WIDTH = 40;
                 ^
0_0_23218645_22999\Main.java:70: 错误: 非法的表达式开始
    public static final int Y_HEIGHT = 30;
    ^
0_0_23218645_22999\Main.java:70: 错误: 非法的表达式开始
    public static final int Y_HEIGHT = 30;
           ^
0_0_23218645_22999\Main.java:70: 错误: 需要';'
    public static final int Y_HEIGHT = 30;
                 ^
0_0_23218645_22999\Main.java:85: 错误: 非法的表达式开始
    void initMap(){
    ^
0_0_23218645_22999\Main.java:85: 错误: 需要';'
    void initMap(){
                ^
0_0_23218645_22999\Main.java:105: 错误: 非法的表达式开始
    void initSnake(){
    ^
0_0_23218645_22999\Main.java:105: 错误: 需要';'
    void initSnake(){
                  ^
0_0_23218645_22999\Main.java:129: 错误: 非法的表达式开始
    public void createFood(){
    ^
0_0_23218645_22999\Main.java:129: 错误: 非法的表达式开始
    public void createFood(){
           ^
0_0_23218645_22999\Main.java:129: 错误: 需要';'
    public void createFood(){
                          ^
0_0_23218645_22999\Main.java:146: 错误: 非法的表达式开始
    public static final int LEFT = 1;
    ^
0_0_23218645_22999\Main.java:146: 错误: 非法的表达式开始
    public static final int LEFT = 1;
           ^
0_0_23218645_22999\Main.java:146: 错误: 需要';'
    public static final int LEFT = 1;
                 ^
0_0_23218645_22999\Main.java:147: 错误: 非法的表达式开始
    public static final int RIGHT = -1;
    ^
0_0_23218645_22999\Main.java:147: 错误: 非法的表达式开始
    public static final int RIGHT = -1;
           ^
0_0_23218645_22999\Main.java:147: 错误: 需要';'
    public static final int RIGHT = -1;
                 ^
0_0_23218645_22999\Main.java:148: 错误: 非法的表达式开始
    public static final int UP = 2;
    ^
0_0_23218645_22999\Main.java:148: 错误: 非法的表达式开始
    public static final int UP = 2;
           ^
0_0_23218645_22999\Main.java:148: 错误: 需要';'
    public static final int UP = 2;
                 ^
0_0_23218645_22999\Main.java:149: 错误: 非法的表达式开始
    public static final int DOWN = -2;
    ^
0_0_23218645_22999\Main.java:149: 错误: 非法的表达式开始
    public static final int DOWN = -2;
           ^
0_0_23218645_22999\Main.java:149: 错误: 需要';'
    public static final int DOWN = -2;
                 ^
0_0_23218645_22999\Main.java:162: 错误: 非法的表达式开始
    public void setDirection(int newDirection){
    ^
0_0_23218645_22999\Main.java:162: 错误: 非法的表达式开始
    public void setDirection(int newDirection){
           ^
0_0_23218645_22999\Main.java:162: 错误: 需要';'
    public void setDirection(int newDirection){
                            ^
0_0_23218645_22999\Main.java:162: 错误: 需要';'
    public void setDirection(int newDirection){
                                             ^
0_0_23218645_22999\Main.java:184: 错误: 非法的表达式开始
    public void move(){
    ^
0_0_23218645_22999\Main.java:184: 错误: 非法的表达式开始
    public void move(){
           ^
0_0_23218645_22999\Main.java:184: 错误: 需要';'
    public void move(){
                    ^
0_0_23218645_22999\Main.java:228: 错误: 非法的表达式开始
    public boolean eatFood(){
    ^
0_0_23218645_22999\Main.java:228: 错误: 需要';'
    public boolean eatFood(){
                          ^
0_0_23218645_22999\Main.java:245: 错误: 需要';'
    public void paint(Graphics g) {    
                     ^
0_0_23218645_22999\Main.java:245: 错误: 需要';'
    public void paint(Graphics g) {    
                                ^
0_0_23218645_22999\Main.java:278: 错误: 解析时已到达文件结尾
}
 ^
46 个错误


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-29 23:30:03, Gzip enabled