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_15056026_30482.cpp:8:13: error: expected initializer before 'hs'
 unsigned LL hs[101000];
             ^
0_0_15056026_30482.cpp:9:13: error: expected initializer before 'pw'
 unsigned LL pw[101000];
             ^
0_0_15056026_30482.cpp: In function 'void init()':
0_0_15056026_30482.cpp:12:2: error: 'hs' was not declared in this scope
  hs[0] = 0;
  ^
0_0_15056026_30482.cpp:13:2: error: 'pw' was not declared in this scope
  pw[0] = 1;
  ^
0_0_15056026_30482.cpp: In function 'int get(int, int)':
0_0_15056026_30482.cpp:21:11: error: 'hs' was not declared in this scope
  return ((hs[r+1] - hs[l]*pw[k]%MOD)%MOD+MOD)%MOD;
           ^
0_0_15056026_30482.cpp:21:27: error: 'pw' was not declared in this scope
  return ((hs[r+1] - hs[l]*pw[k]%MOD)%MOD+MOD)%MOD;
                           ^


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-12-02 08:53:33, Gzip enabled