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_35127919_9035.cpp:1:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_35127919_9035.cpp:4:21: error: ISO C++ forbids in-class initialization of non-const static member 'people::number'
   static int number=0;
                     ^
0_0_35127919_9035.cpp:5:10: error: expected ':' before 'people'
   public people()
          ^
0_0_35127919_9035.cpp:9:3: error: 'String' does not name a type
   String name;
   ^
0_0_35127919_9035.cpp:12:10: error: expected ':' before 'int'
   public int sign()
          ^
0_0_35127919_9035.cpp:16:3: error: 'boolean' does not name a type
   boolean zai=true;
   ^
0_0_35127919_9035.cpp:17:10: error: expected ':' before 'String'
   public String pname()
          ^
0_0_35127919_9035.cpp:17:10: error: 'String' does not name a type
0_0_35127919_9035.cpp:21:10: error: expected ':' before 'int'
   public int pli()
          ^
0_0_35127919_9035.cpp:25:10: error: expected ':' before 'boolean'
   public boolean pzai()
          ^
0_0_35127919_9035.cpp:25:10: error: 'boolean' does not name a type
0_0_35127919_9035.cpp:29:10: error: expected ':' before 'boolean'
   public boolean setzai(boolean b)
          ^
0_0_35127919_9035.cpp:29:10: error: 'boolean' does not name a type
0_0_35127919_9035.cpp:33:2: error: expected ';' after class definition
  }
  ^
0_0_35127919_9035.cpp:34: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-11-26 16:13:18, Gzip enabled