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_26909816_7340.cpp:8:17: error: array bound is not an integer constant before ']' token
     int nxt[MAXN][26], fail[MAXN], end[MAXN];
                 ^
0_0_26909816_7340.cpp:8:33: error: array bound is not an integer constant before ']' token
     int nxt[MAXN][26], fail[MAXN], end[MAXN];
                                 ^
0_0_26909816_7340.cpp:8:44: error: array bound is not an integer constant before ']' token
     int nxt[MAXN][26], fail[MAXN], end[MAXN];
                                            ^
0_0_26909816_7340.cpp: In member function 'int Trie::newnode()':
0_0_26909816_7340.cpp:12:13: error: 'nxt' was not declared in this scope
             nxt[L][i] = -1;
             ^
0_0_26909816_7340.cpp:13:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         end[L++] = 0;
                ^
0_0_26909816_7340.cpp: In member function 'void Trie::insert(char*)':
0_0_26909816_7340.cpp:24:17: error: 'nxt' was not declared in this scope
             if (nxt[now][buf[i]-'a'] == -1)
                 ^
0_0_26909816_7340.cpp:26:19: error: 'nxt' was not declared in this scope
             now = nxt[now][buf[i]-'a'];
                   ^
0_0_26909816_7340.cpp:28:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         end[now]++;
                ^
0_0_26909816_7340.cpp: In member function 'void Trie::build()':
0_0_26909816_7340.cpp:32:9: error: 'fail' was not declared in this scope
         fail[root] = root;
         ^
0_0_26909816_7340.cpp:34:17: error: 'nxt' was not declared in this scope
             if (nxt[root][i] == -1)
                 ^
0_0_26909816_7340.cpp:44:21: error: 'nxt' was not declared in this scope
                 if (nxt[now][i] == -1)
                     ^
0_0_26909816_7340.cpp: In member function 'int Trie::query(char*)':
0_0_26909816_7340.cpp:57:19: error: 'nxt' was not declared in this scope
             now = nxt[now][buf[i]-'a'];
                   ^
0_0_26909816_7340.cpp:60:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 res += end[temp];
                                ^
0_0_26909816_7340.cpp:61:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
                 end[temp] = 0;
                         ^
0_0_26909816_7340.cpp:62:24: error: 'fail' was not declared in this scope
                 temp = fail[temp];
                        ^


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-30 14:24:20, Gzip enabled