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_18343602_22409.cpp: In function 'int main()':
0_0_18343602_22409.cpp:28:43: error: invalid types 'int[int]' for array subscript
   for (i = 0; i < n; i++) scanf("%d", &t[i]);
                                           ^
0_0_18343602_22409.cpp:30:32: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   printf("%d\n", kmp(t, n, p, m));
                                ^
0_0_18343602_22409.cpp:12:5: note: initializing argument 1 of 'int kmp(int*, int, int*, int)'
 int kmp(int t[], int n, int p[], int m) {
     ^


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-23 10:05:25, Gzip enabled