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_13806461_10466.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13806461_10466.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13806461_10466.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13806461_10466.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13806461_10466.cpp: In constructor 'Suffix_Automaton::SAM::SAM(int)':
0_0_13806461_10466.cpp:16:27: error: 'memset' was not declared in this scope
    memset(son,0,sizeof son);
                           ^
0_0_13806461_10466.cpp: In function 'void Suffix_Automaton::Extend(int)':
0_0_13806461_10466.cpp:23:21: error: 'max_len' was not declared in this scope
   SAM *np=new SAM(p-max_len+1);
                     ^
0_0_13806461_10466.cpp:24:15: error: 'son' was not declared in this scope
   while(p&&!p-son[x])
               ^
0_0_13806461_10466.cpp:25:20: error: 'parent' was not declared in this scope
    p-son[x]=np,p=p-parent;
                    ^
0_0_13806461_10466.cpp:26:13: error: 'parent' was not declared in this scope
   if(!p) np-parent=root;
             ^
0_0_13806461_10466.cpp:29:13: error: 'son' was not declared in this scope
    SAM *q=p-son[x];
             ^
0_0_13806461_10466.cpp:31:8: error: 'parent' was not declared in this scope
     np-parent=q;
        ^
0_0_13806461_10466.cpp:35:8: error: 'parent' was not declared in this scope
     nq-parent=q-parent;
        ^
0_0_13806461_10466.cpp:36:38: error: 'memcpy' was not declared in this scope
     memcpy(nq-son,q-son,sizeof nq-son);
                                      ^
0_0_13806461_10466.cpp:40:8: error: 'min_len' was not declared in this scope
     nq-min_len[1]=nq-max_len;
        ^
0_0_13806461_10466.cpp:44:6: error: 'min_len' was not declared in this scope
   np-min_len[1]=np-max_len;
      ^
0_0_13806461_10466.cpp: In function 'void Suffix_Automaton::DFS(Suffix_Automaton::SAM*)':
0_0_13806461_10466.cpp:50:4: error: expected ';' before 'temp'
    temp=min(temp,p-min_len[i]);
    ^
0_0_13806461_10466.cpp:50:20: error: 'min_len' was not declared in this scope
    temp=min(temp,p-min_len[i]);
                    ^
0_0_13806461_10466.cpp:50:30: error: 'min' was not declared in this scope
    temp=min(temp,p-min_len[i]);
                              ^
0_0_13806461_10466.cpp:50:31: error: expected ')' before ';' token
    temp=min(temp,p-min_len[i]);
                               ^
0_0_13806461_10466.cpp:51:19: error: 'max' was not declared in this scope
   ans=max(ans,temp);
                   ^
0_0_13806461_10466.cpp:52:5: error: 'v' was not declared in this scope
   p-v=true;
     ^
0_0_13806461_10466.cpp:54:4: error: expected ';' before 'if'
    if( p-son[i] && !p-son[i]-v )
    ^
0_0_13806461_10466.cpp:54:4: error: expected primary-expression before 'if'
0_0_13806461_10466.cpp:54:4: error: expected ')' before 'if'
0_0_13806461_10466.cpp:54:10: error: 'son' was not declared in this scope
    if( p-son[i] && !p-son[i]-v )
          ^
0_0_13806461_10466.cpp: In function 'int main()':
0_0_13806461_10466.cpp:62:2: error: 'cinn' was not declared in this scope
  cinn;
  ^
0_0_13806461_10466.cpp:63:16: error: 'scanf' was not declared in this scope
  scanf("%s",s+1);
                ^
0_0_13806461_10466.cpp:67:2: error: expected ';' before '{' token
  {
  ^
0_0_13806461_10466.cpp:67:2: error: expected primary-expression before '{' token
0_0_13806461_10466.cpp:67:2: error: expected ')' before '{' token
0_0_13806461_10466.cpp:72:25: error: 'son' was not declared in this scope
    while( p!=root && !p-son[s[j]-'a'] )
                         ^
0_0_13806461_10466.cpp:73:9: error: 'parent' was not declared in this scope
     p=p-parent,len=p-max_len;
         ^
0_0_13806461_10466.cpp:73:22: error: 'max_len' was not declared in this scope
     p=p-parent,len=p-max_len;
                      ^
0_0_13806461_10466.cpp:74:10: error: 'son' was not declared in this scope
    if( p-son[s[j]-'a'] )
          ^
0_0_13806461_10466.cpp:76:35: error: 'parent' was not declared in this scope
    for(SAM* temp=p;temp;temp=temp-parent)
                                   ^
0_0_13806461_10466.cpp:77:10: error: 'min_len' was not declared in this scope
     temp-min_len[i]=max(temp-min_len[i],min(len,temp-max_len) );
          ^
0_0_13806461_10466.cpp:77:54: error: 'max_len' was not declared in this scope
     temp-min_len[i]=max(temp-min_len[i],min(len,temp-max_len) );
                                                      ^
0_0_13806461_10466.cpp:77:61: error: 'min' was not declared in this scope
     temp-min_len[i]=max(temp-min_len[i],min(len,temp-max_len) );
                                                             ^
0_0_13806461_10466.cpp:77:63: error: 'max' was not declared in this scope
     temp-min_len[i]=max(temp-min_len[i],min(len,temp-max_len) );
                                                               ^
0_0_13806461_10466.cpp:81:2: error: 'cout' was not declared in this scope
  cout
  ^


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-25 16:25:21, Gzip enabled