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_21047004_28239.cpp: In function 'int build(int, int)':
0_0_21047004_28239.cpp:32:62: error: 'P' was not declared in this scope
   T[data].num=(T[T[data].pl].num*f[r-mid]+T[T[data].pr].num)%P;
                                                              ^
0_0_21047004_28239.cpp: In function 'long long int gethash(int, int, int)':
0_0_21047004_28239.cpp:41:71: error: 'P' was not declared in this scope
  return (gethash(pl,mid,T[x].pl)*f[pr-mid]+gethash(mid+1,pr,T[x].pr))%P;
                                                                       ^
0_0_21047004_28239.cpp: In function 'void change(int, int, char)':
0_0_21047004_28239.cpp:50:57: error: 'P' was not declared in this scope
  T[x].num=(T[T[x].pl].num*f[T[x].r-mid]+T[T[x].pr].num)%P;
                                                         ^
0_0_21047004_28239.cpp: In function 'int main()':
0_0_21047004_28239.cpp:69:19: error: 'P' was not declared in this scope
    f[i]=f[i-1]*27%P;
                   ^


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-30 13:24:37, Gzip enabled