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_30606063_5440.cpp:5:7: error: 'N' was not declared in this scope
 int p[N];
       ^
0_0_30606063_5440.cpp:6:8: error: 'N' was not declared in this scope
 char a[N], b[N];
        ^
0_0_30606063_5440.cpp:6:14: error: 'N' was not declared in this scope
 char a[N], b[N];
              ^
0_0_30606063_5440.cpp: In function 'int main()':
0_0_30606063_5440.cpp:9:23: error: 'a' was not declared in this scope
  while(scanf("%s %s", a + 1, b + 1) == 2) {
                       ^
0_0_30606063_5440.cpp:9:30: error: 'b' was not declared in this scope
  while(scanf("%s %s", a + 1, b + 1) == 2) {
                              ^
0_0_30606063_5440.cpp:16:45: error: 'p' was not declared in this scope
    while(j > 0 && b[i + 1] != b[j + 1]) j = p[j];
                                             ^
0_0_30606063_5440.cpp:18:4: error: 'p' was not declared in this scope
    p[i + 1] = j;
    ^
0_0_30606063_5440.cpp:23:45: error: 'p' was not declared in this scope
    while(j > 0 && a[i + 1] != b[j + 1]) j = p[j];
                                             ^
0_0_30606063_5440.cpp:28:21: error: 'pritnf' was not declared in this scope
   pritnf("%d\n", ans);
                     ^


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-10-02 20:30:49, Gzip enabled