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_39891820_16296.cpp: In function 'void insert(std::string)':
0_0_39891820_16296.cpp:11:21: error: 'tr' was not declared in this scope; did you mean 'tm'?
   11 |                 if(!tr[u][v]) tr[u][v]=++idx;
      |                     ^~
      |                     tm
0_0_39891820_16296.cpp:12:19: error: 'tr' was not declared in this scope; did you mean 'tm'?
   12 |                 u=tr[u][v];
      |                   ^~
      |                   tm
0_0_39891820_16296.cpp: In function 'int find(std::string)':
0_0_39891820_16296.cpp:21:21: error: 'tr' was not declared in this scope; did you mean 'tm'?
   21 |                 if(!tr[u][v]) return 0;
      |                     ^~
      |                     tm
0_0_39891820_16296.cpp:22:19: error: 'tr' was not declared in this scope; did you mean 'tm'?
   22 |                 u=tr[u][v];
      |                   ^~
      |                   tm
0_0_39891820_16296.cpp: At global scope:
0_0_39891820_16296.cpp:27:6: error: expected unqualified-id before 'delete'
   27 | void delete(string s){
      |      ^~~~~~
0_0_39891820_16296.cpp: In function 'int main()':
0_0_39891820_16296.cpp:48:46: error: type 'std::string' {aka 'class std::__cxx11::basic_string<char>'} argument given to 'delete', expected pointer
   48 |                 else if(op=="delete") delete(s);
      |                                             ~^~


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.001000(s) query 1, Server time : 2025-01-10 04:00:53, Gzip enabled