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_15388804_24215.cpp:3:23: error: 'N' was not declared in this scope
     int num_node,trie[N][M],val[N],num[N];
                       ^
0_0_15388804_24215.cpp:3:26: error: 'M' was not declared in this scope
     int num_node,trie[N][M],val[N],num[N];
                          ^
0_0_15388804_24215.cpp:3:33: error: 'N' was not declared in this scope
     int num_node,trie[N][M],val[N],num[N];
                                 ^
0_0_15388804_24215.cpp:3:40: error: 'N' was not declared in this scope
     int num_node,trie[N][M],val[N],num[N];
                                        ^
0_0_15388804_24215.cpp:24:14: error: 'N' was not declared in this scope
     int fail[N],last[N];
              ^
0_0_15388804_24215.cpp:24:22: error: 'N' was not declared in this scope
     int fail[N],last[N];
                      ^
0_0_15388804_24215.cpp:25:5: error: 'queue' does not name a type
     queue<int>q;
     ^
0_0_15388804_24215.cpp: In member function 'void Trie::clear()':
0_0_15388804_24215.cpp:8:13: error: 'trie' was not declared in this scope
         clr(trie[0]);
             ^
0_0_15388804_24215.cpp:8:20: error: 'clr' was not declared in this scope
         clr(trie[0]);
                    ^
0_0_15388804_24215.cpp: In member function 'void Trie::insert(char*, int)':
0_0_15388804_24215.cpp:13:13: error: 'i' was not declared in this scope
         rep(i,0,len){
             ^
0_0_15388804_24215.cpp:13:20: error: 'rep' was not declared in this scope
         rep(i,0,len){
                    ^
0_0_15388804_24215.cpp:22:9: error: 'val' was not declared in this scope
         val[now]+=1;//表示now这个节点有一个单词
         ^
0_0_15388804_24215.cpp: In member function 'void Trie::build()':
0_0_15388804_24215.cpp:27:19: error: 'q' was not declared in this scope
         clr_queue(q);
                   ^
0_0_15388804_24215.cpp:27:20: error: 'clr_queue' was not declared in this scope
         clr_queue(q);
                    ^
0_0_15388804_24215.cpp:28:9: error: 'fail' was not declared in this scope
         fail[0]=last[0]=0;
         ^
0_0_15388804_24215.cpp:28:17: error: 'last' was not declared in this scope
         fail[0]=last[0]=0;
                 ^
0_0_15388804_24215.cpp:29:13: error: 'i' was not declared in this scope
         rep(i,0,M){
             ^
0_0_15388804_24215.cpp:29:17: error: 'M' was not declared in this scope
         rep(i,0,M){
                 ^
0_0_15388804_24215.cpp:29:18: error: 'rep' was not declared in this scope
         rep(i,0,M){
                  ^
0_0_15388804_24215.cpp: In member function 'void Trie::dfs(char*)':
0_0_15388804_24215.cpp:58:22: error: 'len' cannot be used as a function
         int len=len(s),now=0,c;
                      ^
0_0_15388804_24215.cpp:59:13: error: 'i' was not declared in this scope
         rep(i,0,len){
             ^
0_0_15388804_24215.cpp:59:20: error: 'rep' was not declared in this scope
         rep(i,0,len){
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 19:56:37, Gzip enabled