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_36576138_11495.cpp:28:7: error: 'N' was not declared in this scope
 ull h[N], p[N];
       ^
0_0_36576138_11495.cpp:28:13: error: 'N' was not declared in this scope
 ull h[N], p[N];
             ^
0_0_36576138_11495.cpp: In function 'void gethash(long long int)':
0_0_36576138_11495.cpp:31:5: error: 'p' was not declared in this scope
     p[0] = 1;
     ^
0_0_36576138_11495.cpp:33:9: error: 'h' was not declared in this scope
         h[i] = h[i - 1] * mod + s[i];
         ^
0_0_36576138_11495.cpp: In function 'ull get(long long int, long long int)':
0_0_36576138_11495.cpp:38:12: error: 'h' was not declared in this scope
     return h[r] - h[l - 1] * p[r - l + 1];
            ^
0_0_36576138_11495.cpp:38:30: error: 'p' was not declared in this scope
     return h[r] - h[l - 1] * p[r - l + 1];
                              ^


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 23:12:11, Gzip enabled