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_25084408_15301.cpp:36:36: error: 'maxn' was not declared in this scope
  int deep, fail, cnt, nxt[MM], val[maxn];
                                    ^
0_0_25084408_15301.cpp: In member function 'void node::clear()':
0_0_25084408_15301.cpp:39:10: error: 'val' was not declared in this scope
   memset(val, 0, sizeof val);
          ^
0_0_25084408_15301.cpp: In member function 'void automaton::insert(int, int)':
0_0_25084408_15301.cpp:56:13: error: 'struct node' has no member named 'val'
     mem[p1].val[id]++;
             ^
0_0_25084408_15301.cpp:65:19: error: 'maxn' was not declared in this scope
    for(int i=0; i<maxn; i++) mem[p2].val[i]=0; 
                   ^
0_0_25084408_15301.cpp:65:38: error: 'struct node' has no member named 'val'
    for(int i=0; i<maxn; i++) mem[p2].val[i]=0; 
                                      ^
0_0_25084408_15301.cpp:66:12: error: 'struct node' has no member named 'val'
    mem[p2].val[id]=1;
            ^
0_0_25084408_15301.cpp:86:10: error: 'struct node' has no member named 'val'
   mem[p].val[id]=1;
          ^
0_0_25084408_15301.cpp:101:19: error: 'maxn' was not declared in this scope
    for(int i=0; i<maxn; i++) mem[p2].val[i]=0;
                   ^
0_0_25084408_15301.cpp:101:38: error: 'struct node' has no member named 'val'
    for(int i=0; i<maxn; i++) mem[p2].val[i]=0;
                                      ^
0_0_25084408_15301.cpp: In member function 'void automaton::build(int)':
0_0_25084408_15301.cpp:125:37: error: 'struct node' has no member named 'val'
    for(int j=0; j<=n; j++) mem[prv].val[j]+=mem[cur].val[j];
                                     ^
0_0_25084408_15301.cpp:125:54: error: 'struct node' has no member named 'val'
    for(int j=0; j<=n; j++) mem[prv].val[j]+=mem[cur].val[j];
                                                      ^
0_0_25084408_15301.cpp: In function 'int main()':
0_0_25084408_15301.cpp:155:46: error: no matching function for call to 'automaton::insert(int)'
    for(int j=0; j<n; j++) sam.insert(s[i]-'a');
                                              ^
0_0_25084408_15301.cpp:155:46: note: candidate is:
0_0_25084408_15301.cpp:52:7: note: void automaton::insert(int, int)
  void insert(int c, int id) {
       ^
0_0_25084408_15301.cpp:52:7: 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-11-30 00:06:02, Gzip enabled