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_25675119_639.cpp: In function 'int New()':
0_0_25675119_639.cpp:3:4: error: 'cnt' was not declared in this scope
  ++cnt;
    ^
0_0_25675119_639.cpp:4:9: error: 'son' was not declared in this scope
  memset(son[cnt],0,sizeof(son[cnt]));
         ^
0_0_25675119_639.cpp:4:36: error: 'memset' was not declared in this scope
  memset(son[cnt],0,sizeof(son[cnt]));
                                    ^
0_0_25675119_639.cpp:5:2: error: 'fail' was not declared in this scope
  fail[cnt]=last[cnt]=0;
  ^
0_0_25675119_639.cpp:5:12: error: 'last' was not declared in this scope
  fail[cnt]=last[cnt]=0;
            ^
0_0_25675119_639.cpp:6:2: error: 'vis' was not declared in this scope
  vis[cnt]=0;
  ^
0_0_25675119_639.cpp:7:2: error: 'eow' was not declared in this scope
  eow[cnt]=0;
  ^
0_0_25675119_639.cpp: In function 'int Insert(const char*)':
0_0_25675119_639.cpp:14:7: error: 'son' was not declared in this scope
   if(!son[pos][c]) son[pos][c]=New();
       ^
0_0_25675119_639.cpp:15:7: error: 'son' was not declared in this scope
   pos=son[pos][c];
       ^
0_0_25675119_639.cpp:17:2: error: 'eow' was not declared in this scope
  eow[pos]=1;
  ^
0_0_25675119_639.cpp: In function 'void Build()':
0_0_25675119_639.cpp:22:15: error: 'XNODE' was not declared in this scope
  static int Q[XNODE];
               ^
0_0_25675119_639.cpp:23:12: error: 'Q' was not declared in this scope
  int *head=Q,*tail=Q;
            ^
0_0_25675119_639.cpp:25:6: error: 'son' was not declared in this scope
   if(son[0][c])
      ^
0_0_25675119_639.cpp:26:5: error: 'tail' was not declared in this scope
    *tail++=son[0][c];
     ^
0_0_25675119_639.cpp:27:14: error: 'tail' was not declared in this scope
  while(head!=tail) {
              ^
0_0_25675119_639.cpp:30:7: error: 'son' was not declared in this scope
    if(son[cur][c]) {
       ^
0_0_25675119_639.cpp:32:5: error: 'fail' was not declared in this scope
     fail[u]=son[fail[cur]][c];
     ^
0_0_25675119_639.cpp:33:5: error: 'last' was not declared in this scope
     last[u]=eow[fail[u]]?fail[u]:last[fail[u]];
     ^
0_0_25675119_639.cpp:33:13: error: 'eow' was not declared in this scope
     last[u]=eow[fail[u]]?fail[u]:last[fail[u]];
             ^
0_0_25675119_639.cpp:35:27: error: 'fail' was not declared in this scope
    } else son[cur][c]=son[fail[cur]][c];
                           ^
0_0_25675119_639.cpp: In function 'void Match(const char*)':
0_0_25675119_639.cpp:42:7: error: 'son' was not declared in this scope
   pos=son[pos][*s-'`'];
       ^
0_0_25675119_639.cpp:43:6: error: 'eow' was not declared in this scope
   if(eow[pos]) {
      ^
0_0_25675119_639.cpp:44:22: error: 'last' was not declared in this scope
    for(int u=pos;u;u=last[u])
                      ^
0_0_25675119_639.cpp:45:5: error: 'vis' was not declared in this scope
     vis[u]++;
     ^
0_0_25675119_639.cpp: In function 'void Work()':
0_0_25675119_639.cpp:50:9: error: 'son' was not declared in this scope
  memset(son[0],0,sizeof(son[0]));cnt=0;//sizeof 0??
         ^
0_0_25675119_639.cpp:50:32: error: 'memset' was not declared in this scope
  memset(son[0],0,sizeof(son[0]));cnt=0;//sizeof 0??
                                ^
0_0_25675119_639.cpp:50:34: error: 'cnt' was not declared in this scope
  memset(son[0],0,sizeof(son[0]));cnt=0;//sizeof 0??
                                  ^
0_0_25675119_639.cpp:51:28: error: 'scanf' was not declared in this scope
  int n,m;scanf("%d%d",&n,&m);
                            ^
0_0_25675119_639.cpp:52:17: error: 'XN' was not declared in this scope
  static char *s[XN],pool[XL],str[XL],ts[XL];
                 ^
0_0_25675119_639.cpp:52:26: error: 'XL' was not declared in this scope
  static char *s[XN],pool[XL],str[XL],ts[XL];
                          ^
0_0_25675119_639.cpp:53:2: error: 's' was not declared in this scope
  s[1]=pool;
  ^
0_0_25675119_639.cpp:53:7: error: 'pool' was not declared in this scope
  s[1]=pool;
       ^
0_0_25675119_639.cpp:56:26: error: 'strlen' was not declared in this scope
   s[i+1]=s[i]+strlen(s[i])+1;
                          ^
0_0_25675119_639.cpp:59:14: error: 'ts' was not declared in this scope
   scanf("%s",ts);
              ^
0_0_25675119_639.cpp:60:14: error: 'str' was not declared in this scope
   scanf("%s",str);
              ^
0_0_25675119_639.cpp:61:25: error: 'strlen' was not declared in this scope
   char *p=str+strlen(str);
                         ^
0_0_25675119_639.cpp:63:3: error: 'copy' is not a member of 'std'
   std::copy(ts,ts+strlen(ts)+1,p+1);
   ^
0_0_25675119_639.cpp:64:3: error: 'id' was not declared in this scope
   id[i]=Insert(str);
   ^
0_0_25675119_639.cpp:68:3: error: 'copy' is not a member of 'std'
   std::copy(s[i],s[i+1],str);
   ^
0_0_25675119_639.cpp:68:25: error: 'str' was not declared in this scope
   std::copy(s[i],s[i+1],str);
                         ^
0_0_25675119_639.cpp:69:22: error: 'strlen' was not declared in this scope
   int len=strlen(s[i]);
                      ^
0_0_25675119_639.cpp:71:3: error: 'copy' is not a member of 'std'
   std::copy(s[i],s[i+1],str+len+1);
   ^
0_0_25675119_639.cpp:75:17: error: 'vis' was not declared in this scope
   printf("%d\n",vis[id[i]]);
                 ^
0_0_25675119_639.cpp:75:21: error: 'id' was not declared in this scope
   printf("%d\n",vis[id[i]]);
                     ^
0_0_25675119_639.cpp:75:27: error: 'printf' was not declared in this scope
   printf("%d\n",vis[id[i]]);
                           ^
0_0_25675119_639.cpp: In function 'int main()':
0_0_25675119_639.cpp:79:21: error: 'scanf' was not declared in this scope
  int T;scanf("%d",&T);
                     ^


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