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_30116265_15423.cpp: In function 'void build_suffix_tree()':
0_0_30116265_15423.cpp:47:47: error: too many arguments to function 'node* new_node(int, int)'
   root.next[str[0]-'a'] = new_node(0,len,&root);
                                               ^
0_0_30116265_15423.cpp:35:7: note: declared here
 node* new_node(int b, int e){
       ^
0_0_30116265_15423.cpp:63:46: error: too many arguments to function 'node* new_node(int, int)'
         node* leaf = new_node(i,len, internal);  
                                              ^
0_0_30116265_15423.cpp:35:7: note: declared here
 node* new_node(int b, int e){
       ^
0_0_30116265_15423.cpp:75:51: error: too many arguments to function 'node* new_node(int, int)'
         cur->next[str[i]-'a'] = new_node(i,len,cur);
                                                   ^
0_0_30116265_15423.cpp:35:7: note: declared here
 node* new_node(int b, int e){
       ^


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-10-06 15:02:26, Gzip enabled