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_23189157_20693.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_23189157_20693.cpp:12:8: error: redeclaration of 'int& node::nbsp'
     int count;
        ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp:12:14: error: redeclaration of 'int& node::nbsp'
     int count;
              ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp:12:20: error: redeclaration of 'int& node::nbsp'
     int count;
                    ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp:13:2: error: redeclaration of 'int& node::nbsp'
     node *next[26];
  ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp:13:8: error: redeclaration of 'int& node::nbsp'
     node *next[26];
        ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp:13:14: error: redeclaration of 'int& node::nbsp'
     node *next[26];
              ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp:13:20: error: redeclaration of 'int& node::nbsp'
     node *next[26];
                    ^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
     int count;
  ^
0_0_23189157_20693.cpp: In function 'node* build()':
0_0_23189157_20693.cpp:17:2: error: 'nbsp' was not declared in this scope
     node *p = (node *)malloc(sizeof(node));
  ^
0_0_23189157_20693.cpp:19:59: error: 'i' was not declared in this scope
         p -> next[i] = NULL;
                                                           ^
0_0_23189157_20693.cpp: In function 'void save(char*)':
0_0_23189157_20693.cpp:25:2: error: 'nbsp' was not declared in this scope
     int len = strlen(s);
  ^
0_0_23189157_20693.cpp:30:64: error: 'i' was not declared in this scope
         if(p -> next[s[i] - 'a'] != NULL)//该前缀以存在,则计数加1
                                                                ^
0_0_23189157_20693.cpp:32:89: error: 'i' was not declared in this scope
             p = p -> next[s[i] - 'a'];
                                                                                         ^
0_0_23189157_20693.cpp:35:49: error: 'else' without a previous 'if'
         else//不存在,则建立新的结点
                                                 ^
0_0_23189157_20693.cpp:37:85: error: 'i' was not declared in this scope
             p -> next[s[i] - 'a'] = build();
                                                                                     ^
0_0_23189157_20693.cpp: In function 'int query(char*)':
0_0_23189157_20693.cpp:44:2: error: 'nbsp' was not declared in this scope
     int len = strlen(s);
  ^
0_0_23189157_20693.cpp:49:64: error: 'i' was not declared in this scope
         if(p -> next[s[i] - 'a'] == NULL)//该前缀不存在
                                                                ^
0_0_23189157_20693.cpp:51:65: error: 'i' was not declared in this scope
         p = p -> next[s[i] - 'a'];
                                                                 ^
0_0_23189157_20693.cpp: In function 'int main()':
0_0_23189157_20693.cpp:57:2: error: 'nbsp' was not declared in this scope
     char str[15];
  ^


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-12-03 23:54:05, Gzip enabled