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_33528682_14270.cpp: In function 'int solved(int)':
0_0_33528682_14270.cpp:6:2: error: 'mp' was not declared in this scope
  mp.clear();
  ^
0_0_33528682_14270.cpp:8:22: error: 'len' was not declared in this scope
  for(int i = 0; i <= len - l; i++) {
                      ^
0_0_33528682_14270.cpp:9:3: error: 'ull' was not declared in this scope
   ull t = str_hash(i, i+l-1);
   ^
0_0_33528682_14270.cpp:10:6: error: 't' was not declared in this scope
   mp[t]++;
      ^
0_0_33528682_14270.cpp:11:15: error: 'm' was not declared in this scope
   if(mp[t] >= m) ans = i;
               ^
0_0_33528682_14270.cpp: In function 'int main()':
0_0_33528682_14270.cpp:16:2: error: '_base' was not declared in this scope
  _base[0] = 1;
  ^
0_0_33528682_14270.cpp:17:56: error: 'seed' was not declared in this scope
  for(int i = 1; i < maxn; i++) _base[i] = _base[i-1] * seed;
                                                        ^
0_0_33528682_14270.cpp:18:15: error: 'm' was not declared in this scope
  while(cin >> m, m) {
               ^
0_0_33528682_14270.cpp:19:10: error: 's' was not declared in this scope
   cin >> s;
          ^
0_0_33528682_14270.cpp:20:3: error: 'len' was not declared in this scope
   len = s.length();
   ^
0_0_33528682_14270.cpp:21:3: error: '_hash' was not declared in this scope
   _hash[len] = 0;
   ^
0_0_33528682_14270.cpp:22:59: error: 'seed' was not declared in this scope
   for(int i = len-1; i >= 0; i--) _hash[i] = _hash[i+1] * seed + (s[i] - 'a' + 1);
                                                           ^
0_0_33528682_14270.cpp:30:4: error: 't' was not declared in this scope
    t = solved(mid);
    ^
0_0_33528682_14270.cpp:33:5: error: 'ans' was not declared in this scope
     ans = t;
     ^
0_0_33528682_14270.cpp:36:23: error: 'ans' was not declared in this scope
   cout << r << ' ' << ans << endl;
                       ^


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-07-05 23:42:15, Gzip enabled