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_23260366_24313\Main.java:160: 错误: 需要class, interface或enum
???????????
^
0_0_23260366_24313\Main.java:201: 错误: 需要class, interface或enum
    public void TestSaveTree(){  
           ^
0_0_23260366_24313\Main.java:210: 错误: 需要class, interface或enum
        session.beginTransaction();  
        ^
0_0_23260366_24313\Main.java:213: 错误: 需要class, interface或enum
        Tree tree1=new Tree();  
        ^
0_0_23260366_24313\Main.java:216: 错误: 需要class, interface或enum
        tree1.setName("??");  
        ^
0_0_23260366_24313\Main.java:222: 错误: 需要class, interface或enum
        Tree tree2=new Tree();  
        ^
0_0_23260366_24313\Main.java:225: 错误: 需要class, interface或enum
        tree2.setName("???");  
        ^
0_0_23260366_24313\Main.java:231: 错误: 需要class, interface或enum
        Tree tree3=new Tree();  
        ^
0_0_23260366_24313\Main.java:234: 错误: 需要class, interface或enum
        tree3.setName("????");  
        ^
0_0_23260366_24313\Main.java:240: 错误: 需要class, interface或enum
        Tree tree4=new Tree();  
        ^
0_0_23260366_24313\Main.java:243: 错误: 需要class, interface或enum
        tree4.setName("??????1");  
        ^
0_0_23260366_24313\Main.java:249: 错误: 需要class, interface或enum
        Tree tree5=new Tree();  
        ^
0_0_23260366_24313\Main.java:252: 错误: 需要class, interface或enum
        tree5.setName("??????2");  
        ^
0_0_23260366_24313\Main.java:258: 错误: 需要class, interface或enum
        tree1.getChildren().add(tree2);  
        ^
0_0_23260366_24313\Main.java:261: 错误: 需要class, interface或enum
        tree1.getChildren().add(tree3);  
        ^
0_0_23260366_24313\Main.java:264: 错误: 需要class, interface或enum
        tree2.getChildren().add(tree4);  
        ^
0_0_23260366_24313\Main.java:267: 错误: 需要class, interface或enum
        tree2.getChildren().add(tree5);  
        ^
0_0_23260366_24313\Main.java:270: 错误: 需要class, interface或enum
        tree2.setParent(tree1);  
        ^
0_0_23260366_24313\Main.java:273: 错误: 需要class, interface或enum
        tree3.setParent(tree1);  
        ^
0_0_23260366_24313\Main.java:276: 错误: 需要class, interface或enum
        tree4.setParent(tree2);  
        ^
0_0_23260366_24313\Main.java:279: 错误: 需要class, interface或enum
        tree5.setParent(tree2);   
        ^
0_0_23260366_24313\Main.java:285: 错误: 需要class, interface或enum
        session.save(tree1);  
        ^
0_0_23260366_24313\Main.java:288: 错误: 需要class, interface或enum
        session.getTransaction().commit();  
        ^
0_0_23260366_24313\Main.java:291: 错误: 需要class, interface或enum
    }  
    ^
0_0_23260366_24313\Main.java:314: 错误: 需要class, interface或enum
    public void TestLoadTree(){  
           ^
0_0_23260366_24313\Main.java:320: 错误: 需要class, interface或enum
        session.beginTransaction();  
        ^
0_0_23260366_24313\Main.java:323: 错误: 需要class, interface或enum
        Tree t=(Tree)session.load(Tree.class, 1);  
        ^
0_0_23260366_24313\Main.java:323: 错误: 需要<标识符>
        Tree t=(Tree)session.load(Tree.class, 1);  
                                            ^
0_0_23260366_24313\Main.java:323: 错误: 非法的类型开始
        Tree t=(Tree)session.load(Tree.class, 1);  
                                              ^
0_0_23260366_24313\Main.java:323: 错误: 需要<标识符>
        Tree t=(Tree)session.load(Tree.class, 1);  
                                               ^
0_0_23260366_24313\Main.java:326: 错误: 方法声明无效; 需要返回类型
        print(t);  
        ^
0_0_23260366_24313\Main.java:326: 错误: 需要<标识符>
        print(t);  
               ^
0_0_23260366_24313\Main.java:329: 错误: 需要<标识符>
        session.getTransaction().commit();  
                              ^
0_0_23260366_24313\Main.java:329: 错误: 需要';'
        session.getTransaction().commit();  
                                ^
0_0_23260366_24313\Main.java:344: 错误: 需要class, interface或enum
    private void print(Tree tree) {  
            ^
0_0_23260366_24313\Main.java:350: 错误: 需要class, interface或enum
        for(Tree child: tree.getChildren()){  
        ^
0_0_23260366_24313\Main.java:356: 错误: 需要class, interface或enum
        }
        ^
37 个错误


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-22 09:20:13, Gzip enabled