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_33615731_30132.cpp: In function 'void freetrie(node*)':
0_0_33615731_30132.cpp:56:15: error: 'struct node' has no member named 'next'
         if(p->next[i]!=NULL)
               ^
0_0_33615731_30132.cpp:57:25: error: 'struct node' has no member named 'next'
             freetrie(p->next[i]);
                         ^
0_0_33615731_30132.cpp:59:11: error: 'free' was not declared in this scope
     free(p);
           ^
0_0_33615731_30132.cpp: In function 'int main()':
0_0_33615731_30132.cpp:82:22: error: cannot convert 'node' to 'node*' for argument '1' to 'void freetrie(node*)'
         freetrie(root);//之前没释放内存超时了。。
                      ^


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-07-06 04:52:05, Gzip enabled