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_39249213_8466.cpp: In function 'bool KMP(int, int)':
0_0_39249213_8466.cpp:10:15: error: 'n' was not declared in this scope
   10 |         int p=n[x],q=n[y];
      |               ^
0_0_39249213_8466.cpp:11:15: error: 'q' was not declared in this scope
   11 |         if (p>q) return 0;
      |               ^
0_0_39249213_8466.cpp:18:29: error: 'q' was not declared in this scope
   18 |         for (int i=1,j=0;i<=q;i++)
      |                             ^


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-28 07:40:48, Gzip enabled