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_38699598_5119.cpp:4:1: error: 'll' does not name a type
    4 | ll n,m,p,S,T;
      | ^~
0_0_38699598_5119.cpp:5:8: error: 'maxn' was not declared in this scope
    5 | char s[maxn];
      |        ^~~~
0_0_38699598_5119.cpp:7:5: error: 'll' does not name a type
    7 |     ll nNode=0;
      |     ^~
0_0_38699598_5119.cpp:8:11: error: 'maxn' was not declared in this scope
    8 |     int t[maxn][26];///tire树
      |           ^~~~
0_0_38699598_5119.cpp:9:13: error: 'maxn' was not declared in this scope
    9 |     int cot[maxn];
      |             ^~~~
0_0_38699598_5119.cpp:10:14: error: 'maxn' was not declared in this scope
   10 |     int fail[maxn];///fail指针
      |              ^~~~
0_0_38699598_5119.cpp: In member function 'void Aho::_inint_()':
0_0_38699598_5119.cpp:11:20: error: 'nNode' was not declared in this scope; did you mean 'newNode'?
   11 |     void _inint_(){nNode = 0;}
      |                    ^~~~~
      |                    newNode
0_0_38699598_5119.cpp: In member function 'int Aho::newNode()':
0_0_38699598_5119.cpp:13:33: error: 't' was not declared in this scope; did you mean 'tm'?
   13 |         for(int i=0; i<26; ++i) t[nNode][i]=0;
      |                                 ^
      |                                 tm
0_0_38699598_5119.cpp:13:35: error: 'nNode' was not declared in this scope; did you mean 'newNode'?
   13 |         for(int i=0; i<26; ++i) t[nNode][i]=0;
      |                                   ^~~~~
      |                                   newNode
0_0_38699598_5119.cpp:14:9: error: 'cot' was not declared in this scope; did you mean 'cos'?
   14 |         cot[nNode]=0;
      |         ^~~
      |         cos
0_0_38699598_5119.cpp:14:13: error: 'nNode' was not declared in this scope; did you mean 'newNode'?
   14 |         cot[nNode]=0;
      |             ^~~~~
      |             newNode
0_0_38699598_5119.cpp: In member function 'void Aho::Insert(char*)':
0_0_38699598_5119.cpp:22:17: error: 't' was not declared in this scope; did you mean 'tm'?
   22 |             if(!t[rt][x]) t[rt][x]=newNode();
      |                 ^
      |                 tm
0_0_38699598_5119.cpp:23:16: error: 't' was not declared in this scope; did you mean 'tm'?
   23 |             rt=t[rt][x];
      |                ^
      |                tm
0_0_38699598_5119.cpp:25:9: error: 'cot' was not declared in this scope; did you mean 'cos'?
   25 |         cot[rt] = len;
      |         ^~~
      |         cos
0_0_38699598_5119.cpp: In member function 'void Aho::build()':
0_0_38699598_5119.cpp:28:9: error: 'queue' was not declared in this scope; did you mean 'std::queue'?
   28 |         queue<int>q;
      |         ^~~~~
      |         std::queue
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:66,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:157,
                 from 0_0_38699598_5119.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:96:11: note: 'std::queue' declared here
   96 |     class queue
      |           ^~~~~
0_0_38699598_5119.cpp:28:15: error: expected primary-expression before 'int'
   28 |         queue<int>q;
      |               ^~~
0_0_38699598_5119.cpp:29:9: error: 'fail' was not declared in this scope
   29 |         fail[0]=-1;///初始点设为-1 无fail
      |         ^~~~
0_0_38699598_5119.cpp:30:9: error: 'q' was not declared in this scope
   30 |         q.push(0);
      |         ^
0_0_38699598_5119.cpp:34:20: error: 't' was not declared in this scope; did you mean 'tm'?
   34 |                 if(t[u][i]){
      |                    ^
      |                    tm
0_0_38699598_5119.cpp: In member function 'void Aho::update(int, int)':
0_0_38699598_5119.cpp:54:16: error: 'cot' was not declared in this scope; did you mean 'cos'?
   54 |             if(cot[now]){
      |                ^~~
      |                cos
0_0_38699598_5119.cpp:55:47: error: 's' was not declared in this scope
   55 |                 for(int k=x;k>x-cot[now];k--) s[k] = '*';
      |                                               ^
0_0_38699598_5119.cpp:58:19: error: 'fail' was not declared in this scope
   58 |             now = fail[now];
      |                   ^~~~
0_0_38699598_5119.cpp: In member function 'void Aho::Match(char*)':
0_0_38699598_5119.cpp:69:16: error: 't' was not declared in this scope; did you mean 'tm'?
   69 |             if(t[now][x]) now = t[now][x];
      |                ^
      |                tm
0_0_38699598_5119.cpp:71:49: error: 'fail' was not declared in this scope
   71 |                 while(~now&&t[now][x]==0) now = fail[now];
      |                                                 ^~~~
0_0_38699598_5119.cpp: In function 'int main()':
0_0_38699598_5119.cpp:82:14: error: 'n' was not declared in this scope
   82 |         read(n);
      |              ^
0_0_38699598_5119.cpp:82:9: error: 'read' was not declared in this scope; did you mean 'fread'?
   82 |         read(n);
      |         ^~~~
      |         fread
0_0_38699598_5119.cpp:85:24: error: 's' was not declared in this scope
   85 |             scanf("%s",s);
      |                        ^
0_0_38699598_5119.cpp:90:14: error: 's' was not declared in this scope
   90 |         gets(s);
      |              ^


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-06-26 17:45:18, Gzip enabled