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_21702078_28368.cpp: In function 'void Insert(std::string, int)':
0_0_21702078_28368.cpp:13:2: error: 'nbsp' was not declared in this scope
     int len=S.length();
  ^
0_0_21702078_28368.cpp:17:66: error: 'i' was not declared in this scope
         if(!child[now][S[i]-'0'])
                                                                  ^
0_0_21702078_28368.cpp:18:74: error: 'i' was not declared in this scope
           child[now][S[i]-'0']=size++;
                                                                          ^
0_0_21702078_28368.cpp: In function 'void Inser2(std::string, int)':
0_0_21702078_28368.cpp:24:2: error: 'nbsp' was not declared in this scope
     int len=S.length();
  ^
0_0_21702078_28368.cpp:28:66: error: 'i' was not declared in this scope
         if(!child[now][S[i]-'0'])
                                                                  ^
0_0_21702078_28368.cpp:29:74: error: 'i' was not declared in this scope
           child[now][S[i]-'0']=size++;
                                                                          ^
0_0_21702078_28368.cpp: In function 'void build()':
0_0_21702078_28368.cpp:36:2: error: 'nbsp' was not declared in this scope
     fail[0]=-1;
  ^
0_0_21702078_28368.cpp:42:73: error: 'i' was not declared in this scope
           if(child[U][i])
                                                                         ^
0_0_21702078_28368.cpp:47:121: error: 'i' was not declared in this scope
                   if(child[V][i])
                                                                                                                         ^
0_0_21702078_28368.cpp:49:147: error: 'i' was not declared in this scope
                       fail[child[U][i]]=child[V][i];
                                                                                                                                                   ^
0_0_21702078_28368.cpp:50:133: error: break statement not within loop or switch
                       break;
                                                                                                                                     ^
0_0_21702078_28368.cpp:55:111: error: 'i' was not declared in this scope
                 fail[child[U][i]]=0;
                                                                                                               ^
0_0_21702078_28368.cpp:60:61: error: 'else' without a previous 'if'
           else if(U)
                                                             ^
0_0_21702078_28368.cpp:61:82: error: 'i' was not declared in this scope
             child[U][i]=child[fail[U]][i];
                                                                                  ^
0_0_21702078_28368.cpp: In function 'void Init()':
0_0_21702078_28368.cpp:66:2: error: 'nbsp' was not declared in this scope
     memset(child,0,sizeof(child));
  ^
0_0_21702078_28368.cpp: In function 'int main()':
0_0_21702078_28368.cpp:76:2: error: 'nbsp' was not declared in this scope
     scanf("%d",&T);
  ^
0_0_21702078_28368.cpp:120:108: error: 'j' was not declared in this scope
                 if(!f[cur][j][k])
                                                                                                            ^
0_0_21702078_28368.cpp:124:124: error: 'j' was not declared in this scope
                   f[cur^1][child[j][l]][k|tag[child[j][l]]]=
                                                                                                                            ^
0_0_21702078_28368.cpp:124:127: error: 'l' was not declared in this scope
                   f[cur^1][child[j][l]][k|tag[child[j][l]]]=
                                                                                                                               ^
0_0_21702078_28368.cpp:126:97: error: 'else' without a previous 'if'
                 else{
                                                                                                 ^
0_0_21702078_28368.cpp:136:89: error: 'j' was not declared in this scope
             ans=(ans+f[cur][j][(1<<m)-1])%MOD;
                                                                                         ^


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-12-02 02:58:37, Gzip enabled