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_35127595_5656.cpp:1:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_35127595_5656.cpp:4:21: error: ISO C++ forbids in-class initialization of non-const static member 'people::number'
   static int number=0;
                     ^
0_0_35127595_5656.cpp:5:10: error: expected ':' before 'people'
   public people()
          ^
0_0_35127595_5656.cpp:9:3: error: 'String' does not name a type
   String name;
   ^
0_0_35127595_5656.cpp:11:3: error: 'boolean' does not name a type
   boolean zai=true;
   ^
0_0_35127595_5656.cpp:12:10: error: expected ':' before 'String'
   public String pname()
          ^
0_0_35127595_5656.cpp:12:10: error: 'String' does not name a type
0_0_35127595_5656.cpp:16:10: error: expected ':' before 'int'
   public int pli()
          ^
0_0_35127595_5656.cpp:20:10: error: expected ':' before 'boolean'
   public boolean pzai()
          ^
0_0_35127595_5656.cpp:20:10: error: 'boolean' does not name a type
0_0_35127595_5656.cpp:24:10: error: expected ':' before 'boolean'
   public boolean setzai(boolean b)
          ^
0_0_35127595_5656.cpp:24:10: error: 'boolean' does not name a type
0_0_35127595_5656.cpp:28:2: error: expected ';' after class definition
  }
  ^
0_0_35127595_5656.cpp:29:23: error: expected initializer before 'Comparator'
 class cmp1 implements Comparator<people>
                       ^


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-07-01 13:10:50, Gzip enabled