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_31341705_6940.cpp: In function 'void Insert(char*)':
0_0_31341705_6940.cpp:11:18: error: 'strlen' was not declared in this scope
  int n = strlen(s), now = root;
                  ^
0_0_31341705_6940.cpp:14:11: error: 'now' was not declared in this scope
   if(!son[now][ch-'a']){
           ^
0_0_31341705_6940.cpp:17:3: error: 'now' was not declared in this scope
   now = son[now][ch-'a'];
   ^
0_0_31341705_6940.cpp: In function 'int Query(char*)':
0_0_31341705_6940.cpp:22:18: error: 'strlen' was not declared in this scope
  int n = strlen(s), now = root;
                  ^
0_0_31341705_6940.cpp:25:11: error: 'now' was not declared in this scope
   if(!son[now][ch-'a']) return 0;
           ^
0_0_31341705_6940.cpp:26:3: error: 'now' was not declared in this scope
   now = son[now][ch-'a'];
   ^
0_0_31341705_6940.cpp:28:14: error: 'now' was not declared in this scope
  return data[now];
              ^
0_0_31341705_6940.cpp: In function 'int main()':
0_0_31341705_6940.cpp:32:14: error: 'strlen' was not declared in this scope
   if(strlen(s) == 0 || s[0]==' ') break;
              ^


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-16 07:35:15, Gzip enabled