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_21609460_515.cpp:3:13: error: 'MAXN' was not declared in this scope
     int son[MAXN][2];
             ^
0_0_21609460_515.cpp:4:14: error: 'MAXN' was not declared in this scope
     int fail[MAXN];
              ^
0_0_21609460_515.cpp: In constructor 'Acam::Acam()':
0_0_21609460_515.cpp:10:16: error: 'son' was not declared in this scope
         memset(son,0,sizeof(son));
                ^
0_0_21609460_515.cpp:11:16: error: 'tag' was not declared in this scope
         memset(tag,0,sizeof(tag));
                ^
0_0_21609460_515.cpp:12:16: error: 'tag2' was not declared in this scope
         memset(tag2,0,sizeof(tag));
                ^
0_0_21609460_515.cpp: In member function 'void Acam::ist(char*, int)':
0_0_21609460_515.cpp:19:20: error: 'son' was not declared in this scope
                 if(son[now][1]){
                    ^
0_0_21609460_515.cpp:23:23: error: 'son' was not declared in this scope
                 now = son[now][1];
                       ^
0_0_21609460_515.cpp:25:20: error: 'son' was not declared in this scope
                 if(son[now][0]){
                    ^
0_0_21609460_515.cpp:28:23: error: 'son' was not declared in this scope
                 now = son[now][0];
                       ^
0_0_21609460_515.cpp:32:13: error: 'tag' was not declared in this scope
             tag[now] |= 1<<id;
             ^
0_0_21609460_515.cpp:35:13: error: 'tag2' was not declared in this scope
             tag2[now] |= 1<<id;
             ^
0_0_21609460_515.cpp: In member function 'int Acam::getfail(int, int)':
0_0_21609460_515.cpp:39:29: error: 'son' was not declared in this scope
         while(now != root&& son[now] == 0){
                             ^
0_0_21609460_515.cpp:40:19: error: 'fail' was not declared in this scope
             now = fail[now];
                   ^
0_0_21609460_515.cpp:42:12: error: 'son' was not declared in this scope
         if(son[now] == 0)return root;
            ^
0_0_21609460_515.cpp:43:16: error: 'son' was not declared in this scope
         return son[now];
                ^
0_0_21609460_515.cpp: In member function 'void Acam::build()':
0_0_21609460_515.cpp:46:9: error: 'queue' was not declared in this scope
         queue<int> q;
         ^
0_0_21609460_515.cpp:46:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
                 from 0_0_21609460_515.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_21609460_515.cpp:46:15: error: expected primary-expression before 'int'
         queue<int> q;
               ^
0_0_21609460_515.cpp:47:9: error: 'q' was not declared in this scope
         q.push(root);
         ^
0_0_21609460_515.cpp:48:9: error: 'fail' was not declared in this scope
         fail[root] = 0;
         ^
0_0_21609460_515.cpp:54:20: error: 'son' was not declared in this scope
                 if(son[now][i]){
                    ^
0_0_21609460_515.cpp:66:21: error: 'tag' was not declared in this scope
                     tag[son[now][i]] |= tag[fail[son[now][i]]];
                     ^
0_0_21609460_515.cpp:67:21: error: 'tag2' was not declared in this scope
                     tag2[son[now][i]] |= tag2[fail[son[now][i]]];
                     ^
0_0_21609460_515.cpp: In function 'int main()':
0_0_21609460_515.cpp:87:23: error: no matching function for call to 'Acam::ist(char [25])'
             acam.ist(s);
                       ^
0_0_21609460_515.cpp:87:23: note: candidate is:
0_0_21609460_515.cpp:14:10: note: void Acam::ist(char*, int)
     void ist(char s[],int id){
          ^
0_0_21609460_515.cpp:14:10: note:   candidate expects 2 arguments, 1 provided
0_0_21609460_515.cpp:89:28: error: 'reverse' was not declared in this scope
             reverse(s,s+len);
                            ^
0_0_21609460_515.cpp:89:28: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_21609460_515.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1177:5: note:   'std::reverse'
     reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
     ^
0_0_21609460_515.cpp:90:17: error: 'j' was not declared in this scope
             for(j=0;j<len;j++){
                 ^
0_0_21609460_515.cpp:93:23: error: no matching function for call to 'Acam::ist(char [25])'
             acam.ist(s);
                       ^
0_0_21609460_515.cpp:93:23: note: candidate is:
0_0_21609460_515.cpp:14:10: note: void Acam::ist(char*, int)
     void ist(char s[],int id){
          ^
0_0_21609460_515.cpp:14:10: note:   candidate expects 2 arguments, 1 provided
0_0_21609460_515.cpp:94:17: error: 'j' was not declared in this scope
             for(j=0;j<len;j++){
                 ^
0_0_21609460_515.cpp:97:17: error: 'j' was not declared in this scope
             for(j=len/2;j++){
                 ^
0_0_21609460_515.cpp:97:28: error: expected ';' before ')' token
             for(j=len/2;j++){
                            ^
0_0_21609460_515.cpp:114:33: error: no matching function for call to 'Acam::ist(char [25])'
                     acam.ist(buf);
                                 ^
0_0_21609460_515.cpp:114:33: note: candidate is:
0_0_21609460_515.cpp:14:10: note: void Acam::ist(char*, int)
     void ist(char s[],int id){
          ^
0_0_21609460_515.cpp:14:10: note:   candidate expects 2 arguments, 1 provided


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:43:23, Gzip enabled