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_39545509_18823.cpp: In function 'void insert(std::string&)':
0_0_39545509_18823.cpp:12:20: error: 'tr' was not declared in this scope; did you mean 'tm'?
   12 |                 if(tr[p][x] == 0)tr[p][x] = ++idx;
      |                    ^~
      |                    tm
0_0_39545509_18823.cpp:12:47: error: 'idx' was not declared in this scope
   12 |                 if(tr[p][x] == 0)tr[p][x] = ++idx;
      |                                               ^~~
0_0_39545509_18823.cpp:13:21: error: 'tr' was not declared in this scope; did you mean 'tm'?
   13 |                 p = tr[p][x];
      |                     ^~
      |                     tm
0_0_39545509_18823.cpp:15:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |         cnt[p]++;
      |         ^~~
      |         int
0_0_39545509_18823.cpp: In function 'int find(std::string&)':
0_0_39545509_18823.cpp:21:21: error: 'tr' was not declared in this scope; did you mean 'tm'?
   21 |                 p = tr[p][x];
      |                     ^~
      |                     tm
0_0_39545509_18823.cpp:22:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
   22 |                 if(cnt[p] == 1){
      |                    ^~~
      |                    int


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-15 11:55:11, Gzip enabled