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_35874260_10766.cpp:37:1: error: expected ';' after struct definition
 }
 ^
0_0_35874260_10766.cpp: In member function 'void SAM::init()':
0_0_35874260_10766.cpp:10:18: error: 'id' was not declared in this scope
   for(int i=0;i<=id;i++)
                  ^
0_0_35874260_10766.cpp:15:3: error: 'id' was not declared in this scope
   id = las = 1;
   ^
0_0_35874260_10766.cpp: In member function 'void SAM::insert(int)':
0_0_35874260_10766.cpp:19:23: error: 'id' was not declared in this scope
   int p = las, np = ++id; las = id;
                       ^
0_0_35874260_10766.cpp:20:3: error: 'l' was not declared in this scope
   l[np] = l[p]+1;
   ^
0_0_35874260_10766.cpp:26:8: error: 'len' was not declared in this scope
    if( len[q]==len[p]+1 ) fa[np] = q;
        ^
0_0_35874260_10766.cpp: In function 'int main()':
0_0_35874260_10766.cpp:44:20: error: 'n' was not declared in this scope
  scanf("%s",a+1 ); n = strlen( a+1 );
                    ^
0_0_35874260_10766.cpp:45:10: error: too many arguments to function 'void work()'
  work( a );
          ^
0_0_35874260_10766.cpp:38:6: note: declared here
 void work()
      ^
0_0_35874260_10766.cpp:47:10: error: too many arguments to function 'void work()'
  work( a );
          ^
0_0_35874260_10766.cpp:38:6: note: declared here
 void work()
      ^


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-26 14:10:25, Gzip enabled