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_33774044_31789.cpp: In function 'void find_index(int, int, int&, int&)':
0_0_33774044_31789.cpp:87:1: error: expected primary-expression before '.' token
 .
 ^
0_0_33774044_31789.cpp:88:1: error: expected unqualified-id before 'while'
 while (l <= r) {
 ^
0_0_33774044_31789.cpp: At global scope:
0_0_33774044_31789.cpp:133:11: error: expected ';' at end of member declaration
 void init() 
           ^
0_0_33774044_31789.cpp:134:1: error: 'cnt' does not name a type
 cnt = 0;
 ^
0_0_33774044_31789.cpp:135:8: error: 'next' is not a type
 memset(next, 0, sizeof(next));
        ^
0_0_33774044_31789.cpp:135:14: error: expected identifier before numeric constant
 memset(next, 0, sizeof(next));
              ^
0_0_33774044_31789.cpp:135:14: error: expected ',' or '...' before numeric constant
0_0_33774044_31789.cpp:136:1: error: expected ';' after struct definition
 }
 ^
0_0_33774044_31789.cpp: In function 'void init()':
0_0_33774044_31789.cpp:139:1: error: 'rt' was not declared in this scope
 rt = tot = cnt = 0;
 ^
0_0_33774044_31789.cpp:139:6: error: 'tot' was not declared in this scope
 rt = tot = cnt = 0;
      ^
0_0_33774044_31789.cpp: In function 'void insert(char*)':
0_0_33774044_31789.cpp:146:13: error: 'struct TrieTree' has no member named 'next'
 if (!tb[rt].next[t]) {
             ^
0_0_33774044_31789.cpp:147:6: error: 'tot' was not declared in this scope
 tb[++tot].init();
      ^
0_0_33774044_31789.cpp:148:8: error: 'struct TrieTree' has no member named 'next'
 tb[rt].next[t] = tot;
        ^
0_0_33774044_31789.cpp:150:13: error: 'struct TrieTree' has no member named 'next'
 rt = tb[rt].next[t];
             ^
0_0_33774044_31789.cpp: In function 'void dfs(int, int, int, int)':
0_0_33774044_31789.cpp:161:13: error: 'struct TrieTree' has no member named 'next'
 if (!tb[rt].next[t]) {
             ^
0_0_33774044_31789.cpp:162:6: error: 'tot' was not declared in this scope
 tb[++tot].init();
      ^
0_0_33774044_31789.cpp:163:8: error: 'struct TrieTree' has no member named 'next'
 tb[rt].next[t] = tot;
        ^
0_0_33774044_31789.cpp:165:15: error: 'struct TrieTree' has no member named 'next'
 dfs(v, tb[rt].next[t], t, u);
               ^
0_0_33774044_31789.cpp: In function 'void CalRank(int, int)':
0_0_33774044_31789.cpp:173:12: error: 'struct TrieTree' has no member named 'next'
 if (tb[rt].next[i])
            ^
0_0_33774044_31789.cpp:174:16: error: 'struct TrieTree' has no member named 'next'
 CalRank(tb[rt].next[i], rt);
                ^
0_0_33774044_31789.cpp: In function 'void go(int, int, int)':
0_0_33774044_31789.cpp:185:14: error: 'struct TrieTree' has no member named 'next'
 go(v, tb[rt].next[t], u);
              ^
0_0_33774044_31789.cpp: At global scope:
0_0_33774044_31789.cpp:188:1: error: expected declaration before '}' token
 } Trie;
 ^


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-29 05:13:06, Gzip enabled