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_19898417_26907.cpp:1:1: error: 'import' does not name a type
 import java.io.IOException;
 ^
0_0_19898417_26907.cpp:5:9: error: expected ':' before 'int'
  public int[] key;
         ^
0_0_19898417_26907.cpp:5:12: error: expected unqualified-id before '[' token
  public int[] key;
            ^
0_0_19898417_26907.cpp:6:9: error: expected ':' before 'byte'
  public byte[] result;
         ^
0_0_19898417_26907.cpp:6:9: error: 'byte' does not name a type
0_0_19898417_26907.cpp:7:9: error: expected ':' before 'BitStorage'
  public BitStorage nex;
         ^
0_0_19898417_26907.cpp:7:20: error: field 'nex' has incomplete type 'BitStorage'
  public BitStorage nex;
                    ^
0_0_19898417_26907.cpp:9:9: error: expected ':' before 'BitStorage'
  public BitStorage(int n)
         ^
0_0_19898417_26907.cpp:16:9: error: expected ':' before 'boolean'
  public boolean compareTo(BitStorage bstore, int n)
         ^
0_0_19898417_26907.cpp:16:9: error: 'boolean' does not name a type
0_0_19898417_26907.cpp:31:9: error: expected ':' before 'BitStorage'
  public BitStorage copy(int n)
         ^
0_0_19898417_26907.cpp:42:1: error: expected ';' after class definition
 }
 ^
0_0_19898417_26907.cpp: In constructor 'BitStorage::BitStorage(int)':
0_0_19898417_26907.cpp:11:3: error: 'key' was not declared in this scope
   key = new int[(n >> 5) + 5];
   ^
0_0_19898417_26907.cpp:12:3: error: 'result' was not declared in this scope
   result = new byte[2];
   ^
0_0_19898417_26907.cpp:12:16: error: 'byte' does not name a type
   result = new byte[2];
                ^
0_0_19898417_26907.cpp:13:9: error: 'null' was not declared in this scope
   nex = null;
         ^
0_0_19898417_26907.cpp: In member function 'BitStorage BitStorage::copy(int)':
0_0_19898417_26907.cpp:33:39: error: invalid conversion from 'BitStorage*' to 'int' [-fpermissive]
   BitStorage bstore = new BitStorage(n);
                                       ^
0_0_19898417_26907.cpp:9:9: note: initializing argument 1 of 'BitStorage::BitStorage(int)'
  public BitStorage(int n)
         ^
0_0_19898417_26907.cpp:36:11: error: 'class BitStorage' has no member named 'key'
    bstore.key[i] = key[i];
           ^
0_0_19898417_26907.cpp:36:20: error: 'key' was not declared in this scope
    bstore.key[i] = key[i];
                    ^
0_0_19898417_26907.cpp:37:16: error: 'null' was not declared in this scope
   bstore.nex = null;
                ^
0_0_19898417_26907.cpp:38:10: error: 'class BitStorage' has no member named 'result'
   bstore.result[0] = 0;
          ^
0_0_19898417_26907.cpp:39:10: error: 'class BitStorage' has no member named 'result'
   bstore.result[1] = 0;
          ^
0_0_19898417_26907.cpp: At global scope:
0_0_19898417_26907.cpp:46:10: error: expected ':' before 'BitStorage'
  private BitStorage[] hash;
          ^
0_0_19898417_26907.cpp:46:20: error: expected unqualified-id before '[' token
  private BitStorage[] hash;
                    ^
0_0_19898417_26907.cpp:47:10: error: expected ':' before 'int'
  private int maxn;
          ^
0_0_19898417_26907.cpp:48:9: error: expected ':' before 'BitHash'
  public BitHash(int n)
         ^
0_0_19898417_26907.cpp:54:9: error: expected ':' before 'BitStorage'
  public BitStorage searchKey(BitStorage bstore)
         ^
0_0_19898417_26907.cpp:66:9: error: expected ':' before 'void'
  public void insertKey(BitStorage bstore)
         ^
0_0_19898417_26907.cpp:73:1: error: expected ';' after class definition
 }
 ^
0_0_19898417_26907.cpp: In constructor 'BitHash::BitHash(int)':
0_0_19898417_26907.cpp:50:3: error: 'hash' was not declared in this scope
   hash = new BitStorage[32799];
   ^
0_0_19898417_26907.cpp:50:30: error: no matching function for call to 'BitStorage::BitStorage()'
   hash = new BitStorage[32799];
                              ^
0_0_19898417_26907.cpp:50:30: note: candidates are:
0_0_19898417_26907.cpp:9:9: note: BitStorage::BitStorage(int)
  public BitStorage(int n)
         ^
0_0_19898417_26907.cpp:9:9: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:3:7: note: constexpr BitStorage::BitStorage(const BitStorage&)
 class BitStorage
       ^
0_0_19898417_26907.cpp:3:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:3:7: note: constexpr BitStorage::BitStorage(BitStorage&&)
0_0_19898417_26907.cpp:3:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp: In member function 'BitStorage BitHash::searchKey(BitStorage)':
0_0_19898417_26907.cpp:56:25: error: 'class BitStorage' has no member named 'key'
   int address = (bstore.key[0] & 32767);
                         ^
0_0_19898417_26907.cpp:57:14: error: no matching function for call to 'BitStorage::BitStorage()'
   BitStorage u;
              ^
0_0_19898417_26907.cpp:57:14: note: candidates are:
0_0_19898417_26907.cpp:9:9: note: BitStorage::BitStorage(int)
  public BitStorage(int n)
         ^
0_0_19898417_26907.cpp:9:9: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:3:7: note: constexpr BitStorage::BitStorage(const BitStorage&)
 class BitStorage
       ^
0_0_19898417_26907.cpp:3:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:3:7: note: constexpr BitStorage::BitStorage(BitStorage&&)
0_0_19898417_26907.cpp:3:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:58:11: error: 'hash' was not declared in this scope
   for(u = hash[address]; u != null; u = u.nex)
           ^
0_0_19898417_26907.cpp:58:31: error: 'null' was not declared in this scope
   for(u = hash[address]; u != null; u = u.nex)
                               ^
0_0_19898417_26907.cpp:60:9: error: 'class BitStorage' has no member named 'compareTo'
    if(u.compareTo(bstore, maxn))
         ^
0_0_19898417_26907.cpp:63:10: error: 'null' was not declared in this scope
   return null;
          ^
0_0_19898417_26907.cpp: In member function 'void BitHash::insertKey(BitStorage)':
0_0_19898417_26907.cpp:69:25: error: 'class BitStorage' has no member named 'key'
   int address = (bstore.key[0] & 32767);
                         ^
0_0_19898417_26907.cpp:70:14: error: 'hash' was not declared in this scope
   temp.nex = hash[address];
              ^
0_0_19898417_26907.cpp: At global scope:
0_0_19898417_26907.cpp:77:10: error: expected ':' before 'int'
  private int maxm, maxn, tot;
          ^
0_0_19898417_26907.cpp:78:10: error: expected ':' before 'int'
  private int[] head, to, nex, num;
          ^
0_0_19898417_26907.cpp:78:13: error: expected unqualified-id before '[' token
  private int[] head, to, nex, num;
             ^
0_0_19898417_26907.cpp:79:10: error: expected ':' before 'BitHash'
  private BitHash bhash;
          ^
0_0_19898417_26907.cpp:80:10: error: expected ':' before 'BitStorage'
  private BitStorage bstore;
          ^
0_0_19898417_26907.cpp:82:9: error: expected ':' before 'Graph'
  public Graph(int n, int m)
         ^
0_0_19898417_26907.cpp:95:9: error: expected ':' before 'void'
  public void addStone(int node)
         ^
0_0_19898417_26907.cpp:100:9: error: expected ':' before 'void'
  public void buildEdge(int u, int v)
         ^
0_0_19898417_26907.cpp:107:9: error: expected ':' before 'long'
  public long showAnswer()
         ^
0_0_19898417_26907.cpp:138:10: error: expected ':' before 'boolean'
  private boolean check(boolean step)  // true - taken   false - not taken
          ^
0_0_19898417_26907.cpp:138:10: error: 'boolean' does not name a type
0_0_19898417_26907.cpp:222:1: error: expected ';' after class definition
 }
 ^
0_0_19898417_26907.cpp: In constructor 'Graph::Graph(int, int)':
0_0_19898417_26907.cpp:83:2: error: no matching function for call to 'BitHash::BitHash()'
  {
  ^
0_0_19898417_26907.cpp:83:2: note: candidates are:
0_0_19898417_26907.cpp:48:9: note: BitHash::BitHash(int)
  public BitHash(int n)
         ^
0_0_19898417_26907.cpp:48:9: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:44:7: note: constexpr BitHash::BitHash(const BitHash&)
 class BitHash
       ^
0_0_19898417_26907.cpp:44:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:44:7: note: constexpr BitHash::BitHash(BitHash&&)
0_0_19898417_26907.cpp:44:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:83:2: error: no matching function for call to 'BitStorage::BitStorage()'
  {
  ^
0_0_19898417_26907.cpp:83:2: note: candidates are:
0_0_19898417_26907.cpp:9:9: note: BitStorage::BitStorage(int)
  public BitStorage(int n)
         ^
0_0_19898417_26907.cpp:9:9: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:3:7: note: constexpr BitStorage::BitStorage(const BitStorage&)
 class BitStorage
       ^
0_0_19898417_26907.cpp:3:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:3:7: note: constexpr BitStorage::BitStorage(BitStorage&&)
0_0_19898417_26907.cpp:3:7: note:   candidate expects 1 argument, 0 provided
0_0_19898417_26907.cpp:86:3: error: 'head' was not declared in this scope
   head = new int[maxn];
   ^
0_0_19898417_26907.cpp:87:3: error: 'to' was not declared in this scope
   to = new int[maxm];
   ^
0_0_19898417_26907.cpp:88:3: error: 'nex' was not declared in this scope
   nex = new int[maxm];
   ^
0_0_19898417_26907.cpp


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 22:15:08, Gzip enabled