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_34234414_14127.cpp: In function 'long long unsigned int askhash(int, int)':
0_0_34234414_14127.cpp:25:34: error: 'ha' was not declared in this scope
 ull askhash(int l,int r) {return ha[r]-ha[l-1]*po[r-l+1];}
                                  ^
0_0_34234414_14127.cpp:25:48: error: 'po' was not declared in this scope
 ull askhash(int l,int r) {return ha[r]-ha[l-1]*po[r-l+1];}
                                                ^
0_0_34234414_14127.cpp: In function 'int main()':
0_0_34234414_14127.cpp:40:33: error: 'po' was not declared in this scope
   scanf("%s",s+1),m=strlen(s+1),po[0]=1;
                                 ^
0_0_34234414_14127.cpp:41:41: error: 'ha' was not declared in this scope
   for(int i=1;i<=m;i++) po[i]=po[i-1]*P,ha[i]=ha[i-1]*P+s[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-22 18:16:29, Gzip enabled