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_14676938_25046.cpp:9:2: error: conflicting declaration 'typedef struct Node node'
 }node;
  ^
0_0_14676938_25046.cpp:8:12: note: previous declaration as 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp: In function 'void init()':
0_0_14676938_25046.cpp:15:36: error: invalid application of 'sizeof' to incomplete type 'node'
     root=(node *)malloc(sizeof(node));
                                    ^
0_0_14676938_25046.cpp:16:9: error: invalid use of incomplete type 'struct node'
     root->sum=0;
         ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:19:13: error: invalid use of incomplete type 'struct node'
         root->next[i]=NULL;
             ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp: In function 'void inserts(char*)':
0_0_14676938_25046.cpp:31:13: error: invalid use of incomplete type 'struct node'
         if(h->next[id]==NULL)
             ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:33:41: error: invalid application of 'sizeof' to incomplete type 'node'
             p=(node *)malloc(sizeof(node));
                                         ^
0_0_14676938_25046.cpp:34:14: error: invalid use of incomplete type 'struct node'
             p->sum=1;
              ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:36:18: error: invalid use of incomplete type 'struct node'
                 p->next[j]=NULL;
                  ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:37:14: error: invalid use of incomplete type 'struct node'
             h->next[id]=p;
              ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:38:16: error: invalid use of incomplete type 'struct node'
             h=h->next[id];
                ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:42:16: error: invalid use of incomplete type 'struct node'
             h=h->next[id];
                ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:43:14: error: invalid use of incomplete type 'struct node'
             h->sum++;
              ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp: In function 'int Search(char*)':
0_0_14676938_25046.cpp:55:13: error: invalid use of incomplete type 'struct node'
         if(h->next[id]==NULL)
             ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:58:16: error: invalid use of incomplete type 'struct node'
             h=h->next[id];
                ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^
0_0_14676938_25046.cpp:61:17: error: invalid use of incomplete type 'struct node'
         return h->sum;
                 ^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
     struct node *next[26];
            ^


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-30 09:11:29, Gzip enabled