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_21744210_18623.cpp: In function 'void Trie_insert(std::string)':
0_0_21744210_18623.cpp:17:5: error: 're' was not declared in this scope
     re int num(0), len = str.size(), root = 1;
     ^
0_0_21744210_18623.cpp:18:25: error: 'len' was not declared in this scope
     for (int i = 0; i < len; ++i) {
                         ^
0_0_21744210_18623.cpp:19:9: error: 'num' was not declared in this scope
         num = str[i] - 'a';
         ^
0_0_21744210_18623.cpp:20:14: error: 'root' was not declared in this scope
         if(a[root].next[num] == 0) a[root].next[num] = ++top;
              ^
0_0_21744210_18623.cpp:21:9: error: 'root' was not declared in this scope
         root = a[root].next[num];
         ^
0_0_21744210_18623.cpp:24:7: error: 'root' was not declared in this scope
     a[root].exist = true;
       ^
0_0_21744210_18623.cpp: In function 'int Trie_search(std::string)':
0_0_21744210_18623.cpp:27:5: error: 're' was not declared in this scope
     re int num(0), len = str.size(), root = 1;
     ^
0_0_21744210_18623.cpp:28:26: error: 'len' was not declared in this scope
     for (int i = 0 ; i < len; ++i) {
                          ^
0_0_21744210_18623.cpp:29:9: error: 'num' was not declared in this scope
         num = str[i] - 'a';
         ^
0_0_21744210_18623.cpp:30:9: error: 'root' was not declared in this scope
         root = a[root].next[num];
         ^
0_0_21744210_18623.cpp:32:14: error: 'root' was not declared in this scope
     return a[root].count;
              ^


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-12-01 13:27:29, Gzip enabled