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_15047650_5903.cpp: In member function 'void SAM::init()':
0_0_15047650_5903.cpp:9:18: error: 'clr' was not declared in this scope
         clr(son,0);
                  ^
0_0_15047650_5903.cpp: At global scope:
0_0_15047650_5903.cpp:16:9: error: 'N' was not declared in this scope
 SAM sam[N],*head,*last;
         ^
0_0_15047650_5903.cpp: In function 'void initSam()':
0_0_15047650_5903.cpp:22:16: error: 'sam' was not declared in this scope
     head=last=&sam[0];
                ^
0_0_15047650_5903.cpp: In function 'void insert(int)':
0_0_15047650_5903.cpp:38:13: error: 'sam' was not declared in this scope
     SAM *p=&sam[cnt++],*u=last;
             ^
0_0_15047650_5903.cpp:44:10: error: 'u' was not declared in this scope
     for(;u&&!u->son[x];u=u->pre) u->son[x]=p;
          ^
0_0_15047650_5903.cpp:45:9: error: 'u' was not declared in this scope
     if(!u) p->pre=head;
         ^
0_0_15047650_5903.cpp:50:13: error: 'q' was not declared in this scope
         *r=*q; r->len=u->len+1;
             ^
0_0_15047650_5903.cpp: At global scope:
0_0_15047650_5903.cpp:57:8: error: 'N' was not declared in this scope
 char s[N*2];
        ^
0_0_15047650_5903.cpp:60:11: error: 'N' was not declared in this scope
 int start[N],len[N];
           ^
0_0_15047650_5903.cpp:60:18: error: 'N' was not declared in this scope
 int start[N],len[N];
                  ^
0_0_15047650_5903.cpp:62:1: error: 'vector' does not name a type
 vector<pair<int,int> > V[N];
 ^
0_0_15047650_5903.cpp:64:9: error: 'N' was not declared in this scope
 int ans[N];
         ^
0_0_15047650_5903.cpp:67:1: error: 'map' does not name a type
 map<int,int> mp;
 ^
0_0_15047650_5903.cpp: In function 'int main()':
0_0_15047650_5903.cpp:76:29: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=-1)
                             ^
0_0_15047650_5903.cpp:82:24: error: 's' was not declared in this scope
             scanf("%s",s+cur);
                        ^
0_0_15047650_5903.cpp:83:13: error: 'start' was not declared in this scope
             start[i]=cur;
             ^
0_0_15047650_5903.cpp:84:13: error: 'len' was not declared in this scope
             len[i]=strlen(s+cur);
             ^
0_0_15047650_5903.cpp:84:32: error: 'strlen' was not declared in this scope
             len[i]=strlen(s+cur);
                                ^
0_0_15047650_5903.cpp:91:13: error: 'V' was not declared in this scope
             V[u].pb(MP(v,i));
             ^
0_0_15047650_5903.cpp:91:27: error: 'MP' was not declared in this scope
             V[u].pb(MP(v,i));
                           ^
0_0_15047650_5903.cpp:95:33: error: 'V' was not declared in this scope
         for(i=1;i<=n;i++) if(SZ(V[i])>0)
                                 ^
0_0_15047650_5903.cpp:95:37: error: 'SZ' was not declared in this scope
         for(i=1;i<=n;i++) if(SZ(V[i])>0)
                                     ^
0_0_15047650_5903.cpp:99:19: error: 'start' was not declared in this scope
             for(j=start[i];s[j];j++)  insert(get(s[j]));
                   ^
0_0_15047650_5903.cpp:99:28: error: 's' was not declared in this scope
             for(j=start[i];s[j];j++)  insert(get(s[j]));
                            ^
0_0_15047650_5903.cpp:101:22: error: 'NULL' was not declared in this scope
             while(p!=NULL) p->ok=1,p=p->pre;
                      ^
0_0_15047650_5903.cpp:104:13: error: 'mp' was not declared in this scope
             mp.clear();
             ^
0_0_15047650_5903.cpp:111:21: error: 'ans' was not declared in this scope
                     ans[id]=mp[k];
                     ^
0_0_15047650_5903.cpp:116:23: error: 'start' was not declared in this scope
                 for(t=start[k];s[t];t++)
                       ^
0_0_15047650_5903.cpp:116:32: error: 's' was not declared in this scope
                 for(t=start[k];s[t];t++)
                                ^
0_0_15047650_5903.cpp:123:50: error: 'max' was not declared in this scope
                         if(p->ok) tmp=max(tmp,cur);
                                                  ^
0_0_15047650_5903.cpp:128:17: error: 'ans' was not declared in this scope
                 ans[id]=tmp;
                 ^
0_0_15047650_5903.cpp:132:41: error: 'ans' was not declared in this scope
         for(i=1;i<=m;i++) printf("%d\n",ans[i]);
                                         ^
0_0_15047650_5903.cpp:132:47: error: 'printf' was not declared in this scope
         for(i=1;i<=m;i++) printf("%d\n",ans[i]);
                                               ^


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-09-29 10:25:27, Gzip enabled