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()
^
|