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_25541508_2256.c:6:5: error: unknown type name 'Node'
     Node *next[26];
     ^
0_0_25541508_2256.c:8:5: error: expected specifier-qualifier-list before 'Node'
     Node()
     ^
0_0_25541508_2256.c:18:1: error: unknown type name 'Node'
 Node root;
 ^
0_0_25541508_2256.c: In function 'insert':
0_0_25541508_2256.c:21:5: error: unknown type name 'Node'
     Node *p = &root;
     ^
0_0_25541508_2256.c:25:13: error: request for member 'next' in something not a structure or union
         if(p->next[a[i]-'a']==NULL)
             ^
0_0_25541508_2256.c:26:14: error: request for member 'next' in something not a structure or union
             p->next[a[i]-'a'] = new Node;
              ^
0_0_25541508_2256.c:26:33: error: 'new' undeclared (first use in this function)
             p->next[a[i]-'a'] = new Node;
                                 ^
0_0_25541508_2256.c:26:33: note: each undeclared identifier is reported only once for each function it appears in
0_0_25541508_2256.c:26:37: error: expected ';' before 'Node'
             p->next[a[i]-'a'] = new Node;
                                     ^
0_0_25541508_2256.c:27:14: error: request for member 'next' in something not a structure or union
         p = p->next[a[i]-'a'];
              ^
0_0_25541508_2256.c:28:10: error: request for member 'num' in something not a structure or union
         p->num++;
          ^
0_0_25541508_2256.c: In function 'find':
0_0_25541508_2256.c:33:5: error: unknown type name 'Node'
     Node *p = &root;
     ^
0_0_25541508_2256.c:37:13: error: request for member 'next' in something not a structure or union
         if(p->next[a[i]-'a']==NULL)
             ^
0_0_25541508_2256.c:39:14: error: request for member 'next' in something not a structure or union
         p = p->next[a[i]-'a'];
              ^
0_0_25541508_2256.c:41:13: error: request for member 'num' in something not a structure or union
     return p->num;
             ^


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-02 06:24:53, Gzip enabled