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_19436229_12798.cpp: In member function 'void TRIE::init()':
0_0_19436229_12798.cpp:16:38: error: 'memset' was not declared in this scope
 #define mem(p,c) memset(p,c,sizeof(p))
                                      ^
0_0_19436229_12798.cpp:49:24: note: in expansion of macro 'mem'
 void init(){pos=1;cn=0;mem(tr[0].p,0);tr[0].s=0;}
                        ^
0_0_19436229_12798.cpp: In member function 'void TRIE::insert(int)':
0_0_19436229_12798.cpp:52:17: error: 'strlen' was not declared in this scope
 int len=strlen(s),t=0;
                 ^
0_0_19436229_12798.cpp:57:7: error: 't' was not declared in this scope
 if(tr[t].p[s[x]-'a']){
       ^
0_0_19436229_12798.cpp:16:38: error: 'memset' was not declared in this scope
 #define mem(p,c) memset(p,c,sizeof(p))
                                      ^
0_0_19436229_12798.cpp:68:1: note: in expansion of macro 'mem'
 mem(tr[t].p,0);
 ^


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-09-30 11:04:32, Gzip enabled