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_16203813_25726.cpp:4:13: error: 'N' was not declared in this scope
 int element[N];
             ^
0_0_16203813_25726.cpp:5:11: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
           ^
0_0_16203813_25726.cpp:5:20: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                    ^
0_0_16203813_25726.cpp:5:30: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                              ^
0_0_16203813_25726.cpp:5:40: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                                        ^
0_0_16203813_25726.cpp:5:47: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                                               ^
0_0_16203813_25726.cpp:5:59: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                                                           ^
0_0_16203813_25726.cpp:5:70: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                                                                      ^
0_0_16203813_25726.cpp:5:81: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                                                                                 ^
0_0_16203813_25726.cpp:5:97: error: 'N' was not declared in this scope
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
                                                                                                 ^
0_0_16203813_25726.cpp:6:13: error: 'N' was not declared in this scope
 int minimum[N][D];
             ^
0_0_16203813_25726.cpp:6:16: error: 'D' was not declared in this scope
 int minimum[N][D];
                ^
0_0_16203813_25726.cpp: In function 'bool cmp(int, int)':
0_0_16203813_25726.cpp:10:9: error: 'element' was not declared in this scope
  return element[x] < element[y];
         ^
0_0_16203813_25726.cpp: In function 'void build_sa(int)':
0_0_16203813_25726.cpp:15:3: error: 'order' was not declared in this scope
   order[i] = i;
   ^
0_0_16203813_25726.cpp:17:2: error: 'sort' is not a member of 'std'
  std::sort(order + 1, order + n + 1, cmp);
  ^
0_0_16203813_25726.cpp:17:12: error: 'order' was not declared in this scope
  std::sort(order + 1, order + n + 1, cmp);
            ^
0_0_16203813_25726.cpp:18:2: error: 'rank' was not declared in this scope
  rank[order[1]] = 1;
  ^
0_0_16203813_25726.cpp:19:2: error: 'sa' was not declared in this scope
  sa[1] = order[1];
  ^
0_0_16203813_25726.cpp:21:42: error: 'element' was not declared in this scope
   rank[order[i]] = rank[order[i - 1]] + (element[order[i - 1]] != element[order[i]]);
                                          ^
0_0_16203813_25726.cpp:26:4: error: 'rank1' was not declared in this scope
    rank1[i] = rank[i];
    ^
0_0_16203813_25726.cpp:27:4: error: 'rank2' was not declared in this scope
    rank2[i] = i + length <= n ? rank[i + length] : 0;
    ^
0_0_16203813_25726.cpp:29:10: error: 'bucket' was not declared in this scope
   memset(bucket, 0, sizeof(bucket));
          ^
0_0_16203813_25726.cpp:31:11: error: 'rank2' was not declared in this scope
    bucket[rank2[i]] ++;
           ^
0_0_16203813_25726.cpp:37:4: error: 'temp_sa' was not declared in this scope
    temp_sa[bucket[rank2[i]] --] = i;
    ^
0_0_16203813_25726.cpp:37:19: error: 'rank2' was not declared in this scope
    temp_sa[bucket[rank2[i]] --] = i;
                   ^
0_0_16203813_25726.cpp:41:11: error: 'rank1' was not declared in this scope
    bucket[rank1[i]] ++; 
           ^
0_0_16203813_25726.cpp:47:14: error: 'rank1' was not declared in this scope
    sa[bucket[rank1[temp_sa[i]]] --] = temp_sa[i];
              ^
0_0_16203813_25726.cpp:47:20: error: 'temp_sa' was not declared in this scope
    sa[bucket[rank1[temp_sa[i]]] --] = temp_sa[i];
                    ^
0_0_16203813_25726.cpp:51:37: error: 'rank1' was not declared in this scope
    rank[sa[i]] = rank[sa[i - 1]] + (rank1[sa[i - 1]] != rank1[sa[i]] || rank2[sa[i - 1]] != rank2[sa[i]]);
                                     ^
0_0_16203813_25726.cpp:51:73: error: 'rank2' was not declared in this scope
    rank[sa[i]] = rank[sa[i - 1]] + (rank1[sa[i - 1]] != rank1[sa[i]] || rank2[sa[i - 1]] != rank2[sa[i]]);
                                                                         ^
0_0_16203813_25726.cpp:58:43: error: 'element' was not declared in this scope
    while (i + lcp <= n && j + lcp <= n && element[i + lcp] == element[j + lcp]) {
                                           ^
0_0_16203813_25726.cpp:62:3: error: 'height' was not declared in this scope
   height[rank[i]] = temp_height[i] = lcp;
   ^
0_0_16203813_25726.cpp:62:21: error: 'temp_height' was not declared in this scope
   height[rank[i]] = temp_height[i] = lcp;
                     ^
0_0_16203813_25726.cpp:67:3: error: 'minimum' was not declared in this scope
   minimum[i][0] = height[i];
   ^
0_0_16203813_25726.cpp:67:19: error: 'height' was not declared in this scope
   minimum[i][0] = height[i];
                   ^
0_0_16203813_25726.cpp:69:26: error: 'log' was not declared in this scope
  int length = floor(log(n) / log(2));
                          ^
0_0_16203813_25726.cpp:69:36: error: 'floor' was not declared in this scope
  int length = floor(log(n) / log(2));
                                    ^
0_0_16203813_25726.cpp:72:12: error: 'min' is not a member of 'std'
    int k = std::min(n, i + (1 << j - 1));
            ^
0_0_16203813_25726.cpp:73:4: error: 'minimum' was not declared in this scope
    minimum[i][j] = std::min(minimum[i][j - 1], minimum[k][j - 1]);
    ^
0_0_16203813_25726.cpp:73:20: error: 'min' is not a member of 'std'
    minimum[i][j] = std::min(minimum[i][j - 1], minimum[k][j - 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-06 03:08:27, Gzip enabled