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_26332818_7808.cpp:17:18: error: expected primary-expression before ']' token
     int pre[maxn<],step[maxn];
                  ^
0_0_26332818_7808.cpp: In member function 'void SAM::init()':
0_0_26332818_7808.cpp:24:9: error: 'pre' was not declared in this scope
         pre[0] = -1;
         ^
0_0_26332818_7808.cpp: In member function 'void SAM::Insert(int)':
0_0_26332818_7808.cpp:36:17: error: 'pre' was not declared in this scope
             p = pre[p];
                 ^
0_0_26332818_7808.cpp:38:21: error: 'pre' was not declared in this scope
         if(p == -1) pre[np] = 0;
                     ^
0_0_26332818_7808.cpp:47:17: error: 'pre' was not declared in this scope
                 pre[nq] = pre[q];
                 ^
0_0_26332818_7808.cpp:55:17: error: 'pre' was not declared in this scope
                 pre[np] = q;
                 ^
0_0_26332818_7808.cpp: In member function 'void SAM::calc(int)':
0_0_26332818_7808.cpp:77:17: error: 'pre' was not declared in this scope
             num[pre[top[i]]] += num[top[i]];
                 ^
0_0_26332818_7808.cpp: In member function 'void SAM::get(int)':
0_0_26332818_7808.cpp:84:51: error: 'pre' was not declared in this scope
             if(num[np]>=K) ans += step[np] - step[pre[np]];
                                                   ^
0_0_26332818_7808.cpp:85:18: error: 'pre' was not declared in this scope
             np = pre[np];
                  ^


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-18 16:26:26, Gzip enabled