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_21606012_26237.cpp: In function 'int Manacher(char*)':
0_0_21606012_26237.cpp:5:19: error: 'strlen' was not declared in this scope
  n = strlen(OldStr);
                   ^
0_0_21606012_26237.cpp:6:2: error: 'newStr' was not declared in this scope
  newStr[0] = '$';
  ^
0_0_21606012_26237.cpp:21:4: error: 'p' was not declared in this scope
    p[i] = min(p[2 * Id - i], MaxId - i);
    ^
0_0_21606012_26237.cpp:21:39: error: 'min' was not declared in this scope
    p[i] = min(p[2 * Id - i], MaxId - i);
                                       ^
0_0_21606012_26237.cpp:25:4: error: 'p' was not declared in this scope
    p[i] = 1;
    ^
0_0_21606012_26237.cpp:28:20: error: 'p' was not declared in this scope
   while(newStr[i + p[i]] == newStr[i - p[i]])
                    ^
0_0_21606012_26237.cpp:33:7: error: 'p' was not declared in this scope
   if (p[i] + i > MaxId)
       ^
0_0_21606012_26237.cpp:39:7: error: 'p' was not declared in this scope
   if (p[i] > MaxValue)
       ^


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-12-02 03:34:30, Gzip enabled