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_22153163_30074.cpp:9:8: error: redeclaration of 'int& Trie::nbsp'
     int id;//记录单词id
        ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:9:14: error: redeclaration of 'int& Trie::nbsp'
     int id;//记录单词id
              ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:10:2: error: redeclaration of 'int& Trie::nbsp'
     int next[26];//记录单词(前缀)出现次数及孩子节点
  ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:10:8: error: redeclaration of 'int& Trie::nbsp'
     int next[26];//记录单词(前缀)出现次数及孩子节点
        ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:10:14: error: redeclaration of 'int& Trie::nbsp'
     int next[26];//记录单词(前缀)出现次数及孩子节点
              ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:11:2: error: redeclaration of 'int& Trie::nbsp'
     inline void init()
  ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:11:8: error: redeclaration of 'int& Trie::nbsp'
     inline void init()
        ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:11:14: error: redeclaration of 'int& Trie::nbsp'
     inline void init()
              ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:12:1: error: expected ';' at end of member declaration
     {
 ^
0_0_22153163_30074.cpp:12:2: error: 'nbsp' does not name a type
     {
  ^
0_0_22153163_30074.cpp:12:8: error: redeclaration of 'int& Trie::nbsp'
     {
        ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:12:14: error: redeclaration of 'int& Trie::nbsp'
     {
              ^
0_0_22153163_30074.cpp:9:2: note: previous declaration 'int& Trie::nbsp'
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:12:20: error: expected unqualified-id before '{' token
     {
                    ^
0_0_22153163_30074.cpp:16:8: error: use of deleted function 'Trie::Trie()'
 }tree[N],tree2[N];
        ^
0_0_22153163_30074.cpp:7:8: note: 'Trie::Trie()' is implicitly deleted because the default definition would be ill-formed:
 struct Trie
        ^
0_0_22153163_30074.cpp:7:8: error: uninitialized reference member in 'struct Trie'
0_0_22153163_30074.cpp:9:2: note: 'int& Trie::nbsp' should be initialized
     int id;//记录单词id
  ^
0_0_22153163_30074.cpp:16:17: error: use of deleted function 'Trie::Trie()'
 }tree[N],tree2[N];
                 ^
0_0_22153163_30074.cpp: In function 'void insert(char*)':
0_0_22153163_30074.cpp:20:2: error: 'nbsp' was not declared in this scope
     int rt = 0;
  ^
0_0_22153163_30074.cpp: In function 'int find(char*)':
0_0_22153163_30074.cpp:36:2: error: 'nbsp' was not declared in this scope
     int rt = 0;
  ^
0_0_22153163_30074.cpp: In function 'void insert2(char*)':
0_0_22153163_30074.cpp:48:2: error: 'nbsp' was not declared in this scope
     int rt = 0;
  ^
0_0_22153163_30074.cpp: In function 'int find2(char*)':
0_0_22153163_30074.cpp:64:2: error: 'nbsp' was not declared in this scope
     int rt = 0;
  ^
0_0_22153163_30074.cpp: In function 'void make(char*)':
0_0_22153163_30074.cpp:76:2: error: 'nbsp' was not declared in this scope
     int rt = 0;
  ^
0_0_22153163_30074.cpp:90:68: error: 'else' without a previous 'if'
             else front[id] ++;
                                                                    ^
0_0_22153163_30074.cpp: In function 'void solve(char*, int)':
0_0_22153163_30074.cpp:99:2: error: 'nbsp' was not declared in this scope
     int rt = 0;
  ^
0_0_22153163_30074.cpp: In function 'void out(long long int)':
0_0_22153163_30074.cpp:120:2: error: 'nbsp' was not declared in this scope
     if(a >= 10) out(a/10);
  ^
0_0_22153163_30074.cpp: In function 'int main()':
0_0_22153163_30074.cpp:125:2: error: 'nbsp' was not declared in this scope
     int n,i,j;
  ^


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-09-21 11:27:28, Gzip enabled