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_39457547_31758.cpp: In function 'void init1()':
0_0_39457547_31758.cpp:25:17: error: 'w1' was not declared in this scope; did you mean 'l1'?
   25 |         h1[0]=0,w1[0]=1;
      |                 ^~
      |                 l1
0_0_39457547_31758.cpp: In function 'void init2()':
0_0_39457547_31758.cpp:35:17: error: 'w1' was not declared in this scope; did you mean 'l1'?
   35 |         h1[0]=0,w1[0]=1;
      |                 ^~
      |                 l1
0_0_39457547_31758.cpp: In function 'long long int getsum(long long int, long long int)':
0_0_39457547_31758.cpp:44:31: error: 'w1' was not declared in this scope; did you mean 's1'?
   44 |         return (h1[r]-h1[l-1]*w1[r-l+1]%mod1+mod1)%mod1;
      |                               ^~
      |                               s1


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.001000(s) query 1, Server time : 2025-02-17 07:32:58, Gzip enabled