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_38780670_31656.cpp:151:26: error: expected initializer before 'ULL'
  151 | typedef unsigned int64_t ULL;
      |                          ^~~
0_0_38780670_31656.cpp:153:1: error: 'ULL' does not name a type; did you mean 'NULL'?
  153 | ULL get(int l, int r,ULL* p,ULL* h,int len) /// 计算子串 str[l ~ r] 的哈希值(闭区间)
      | ^~~
      | NULL
0_0_38780670_31656.cpp:158:7: error: 'ULL' does not name a type; did you mean 'NULL'?
  158 | const ULL P = 127;///1313,13331 等质数都比较合适
      |       ^~~
      |       NULL
0_0_38780670_31656.cpp:160:1: error: 'ULL' does not name a type; did you mean 'NULL'?
  160 | ULL p[N],h1[N],h2[N],h3[N];
      | ^~~
      | NULL
0_0_38780670_31656.cpp: In function 'int main()':
0_0_38780670_31656.cpp:179:5: error: 'p' was not declared in this scope
  179 |     p[0] = 1;
      |     ^
0_0_38780670_31656.cpp:180:47: error: 'P' was not declared in this scope
  180 |     for(int i = 1;i < N;++i)p[i] = p[i - 1] * P;
      |                                               ^
0_0_38780670_31656.cpp:189:13: error: 'h3' was not declared in this scope
  189 |             h3[i] = h3[i - 1] * P + s[i - 1];
      |             ^~
0_0_38780670_31656.cpp:189:33: error: 'P' was not declared in this scope
  189 |             h3[i] = h3[i - 1] * P + s[i - 1];
      |                                 ^
0_0_38780670_31656.cpp:193:13: error: 'h2' was not declared in this scope; did you mean 't2'?
  193 |             h2[i] = h2[i - 1] * P + t2[i - 1];
      |             ^~
      |             t2
0_0_38780670_31656.cpp:193:33: error: 'P' was not declared in this scope
  193 |             h2[i] = h2[i - 1] * P + t2[i - 1];
      |                                 ^
0_0_38780670_31656.cpp:197:13: error: 'h1' was not declared in this scope; did you mean 't1'?
  197 |             h1[i] = h1[i - 1] * P + t1[i - 1];
      |             ^~
      |             t1
0_0_38780670_31656.cpp:197:33: error: 'P' was not declared in this scope
  197 |             h1[i] = h1[i - 1] * P + t1[i - 1];
      |                                 ^
0_0_38780670_31656.cpp:199:35: error: 'ULL' was not declared in this scope; did you mean 'NULL'?
  199 |         __gnu_pbds::cc_hash_table<ULL,int>cnt;
      |                                   ^~~
      |                                   NULL
0_0_38780670_31656.cpp:199:42: error: template argument 1 is invalid
  199 |         __gnu_pbds::cc_hash_table<ULL,int>cnt;
      |                                          ^
0_0_38780670_31656.cpp:199:42: error: template argument 3 is invalid
0_0_38780670_31656.cpp:199:42: error: template argument 4 is invalid
0_0_38780670_31656.cpp:201:16: error: expected ';' before 'L'
  201 |             ULL L = get(1,i,p,h1,t1l), mid = get(1,t2l,p,h2,t2l), R = get(i + 1,t1l,p,h1,t1l);
      |                ^~
      |                ;
0_0_38780670_31656.cpp:203:16: error: expected ';' before 'h'
  203 |             ULL h = L * p[len_mid+len_R] + mid * p[len_R] + R;
      |                ^~
      |                ;
0_0_38780670_31656.cpp:204:17: error: 'h' was not declared in this scope
  204 |             cnt[h]++;
      |                 ^
0_0_38780670_31656.cpp:209:16: error: expected ';' before 'ha'
  209 |             ULL ha = get(i - len + 1,i,p,h3,sl);
      |                ^~~
      |                ;
0_0_38780670_31656.cpp:210:23: error: 'ha' was not declared in this scope
  210 |             as += cnt[ha];
      |                       ^~


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-17 04:57:35, Gzip enabled