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_36200939_22624.cpp: In function 'void get_next()':
0_0_36200939_22624.cpp:10:5: error: 'nextt' was not declared in this scope
     nextt[0] = -1;//这个是辅助计算next值得
     ^
0_0_36200939_22624.cpp:11:15: error: 'n' was not declared in this scope
     while(i < n) {
               ^
0_0_36200939_22624.cpp:12:23: error: 'S' was not declared in this scope
         if(j == -1 || S[i] == S[j]) {
                       ^
0_0_36200939_22624.cpp:14:47: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
             if(S[i] == S[j]) nextt[j] = next[i];//压缩路径
                                               ^
0_0_36200939_22624.cpp:21:1: error: a function-definition is not allowed here before '{' token
 {
 ^
0_0_36200939_22624.cpp:57:1: error: expected '}' at end of input
 }
 ^
0_0_36200939_22624.cpp:57:1: error: expected '}' at end of input


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001001(s) query 1, Server time : 2025-01-13 13:59:08, Gzip enabled