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_16183515_25786.cpp:22:17: error: expected unqualified-id before '/' token
 struct node     / 
                 ^
0_0_16183515_25786.cpp:29:25: error: elements of array 'node memory [99999]' have incomplete type
 node *root, memory[99999];  
                         ^
0_0_16183515_25786.cpp:29:25: error: storage size of 'memory' isn't known
0_0_16183515_25786.cpp: In function 'node* create()':
0_0_16183515_25786.cpp:35:6: error: invalid use of incomplete type 'struct node'
     p->val = 0;  
      ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:39:10: error: invalid use of incomplete type 'struct node'
         p->next[i] = NULL;  
          ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp: In function 'void insert(char*, int)':
0_0_16183515_25786.cpp:52:13: error: invalid use of incomplete type 'struct node'
         if(p->next[k] == NULL)  
             ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:54:14: error: invalid use of incomplete type 'struct node'
             p->next[k] = create();  
              ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:56:14: error: invalid use of incomplete type 'struct node'
         p = p->next[k];  
              ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:57:10: error: invalid use of incomplete type 'struct node'
         p->val += val;       
          ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:60:17: error: invalid use of incomplete type 'struct node'
         strcpy(p->ch, str);  
                 ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp: In function 'void dfs(node*, int, int)':
0_0_16183515_25786.cpp:68:13: error: invalid use of incomplete type 'struct node'
         if(p->val > MAX)   
             ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:70:26: error: invalid use of incomplete type 'struct node'
             strcpy(res, p->ch);  
                          ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:71:20: error: invalid use of incomplete type 'struct node'
             MAX = p->val;  
                    ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:75:9: error: redeclaration of 'int i'
     int i, k, len;  
         ^
0_0_16183515_25786.cpp:65:8: note: 'int i' previously declared here
 {  int i, k, len;  
        ^
0_0_16183515_25786.cpp:75:12: error: redeclaration of 'int k'
     int i, k, len;  
            ^
0_0_16183515_25786.cpp:65:11: note: 'int k' previously declared here
 {  int i, k, len;  
           ^
0_0_16183515_25786.cpp:75:15: error: redeclaration of 'int len'
     int i, k, len;  
               ^
0_0_16183515_25786.cpp:65:14: note: 'int len' previously declared here
 {  int i, k, len;  
              ^
0_0_16183515_25786.cpp:81:13: error: invalid use of incomplete type 'struct node'
         if(p->next[map[k][i] - 'a'] == NULL) continue;      
             ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^
0_0_16183515_25786.cpp:82:19: error: invalid use of incomplete type 'struct node'
         else dfs(p->next[map[k][i] - 'a'], cur+1, op);      
                   ^
0_0_16183515_25786.cpp:22:8: error: forward declaration of 'struct node'
 struct node     / 
        ^


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 21:50:19, Gzip enabled