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_22202769_2862.cpp: In function 'void inItHash(char*)':
0_0_22202769_2862.cpp:19:19: error: 'strlen' was not declared in this scope
  len = strlen(temp);
                   ^
0_0_22202769_2862.cpp: In function 'int judgeStr(char*, int)':
0_0_22202769_2862.cpp:27:22: error: 'strlen' was not declared in this scope
      len = strlen(str);
                      ^
0_0_22202769_2862.cpp:29:10: error: 'sum' was not declared in this scope
          sum = sum * X + (str[j-1] - 'a');
          ^
0_0_22202769_2862.cpp:32:13: error: 'sum' was not declared in this scope
          if(sum == get(k, k+len-1, hhash)) { //取出与目标串等长的子串的hash值, 
             ^
0_0_22202769_2862.cpp:33:15: error: 'flag' was not declared in this scope
               flag = 1;      //与目标串进行比较。 
               ^
0_0_22202769_2862.cpp:37:10: error: 'flag' was not declared in this scope
       if(flag)
          ^
0_0_22202769_2862.cpp:38:42: error: 'printf' was not declared in this scope
          printf("字符串str为总串的子串\n");
                                          ^
0_0_22202769_2862.cpp:40:44: error: 'printf' was not declared in this scope
          printf("字符串str不是总串的子串\n");
                                            ^


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-17 21:23:10, Gzip enabled