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_33841703_882.cpp:4:11: error: uninitialized const 'N' [-fpermissive]
 const int N;
           ^
0_0_33841703_882.cpp:14:14: error: array bound is not an integer constant before ']' token
 int n, rank[N], sa[N], height[N], tmp[N], cnt[N]; char s[N];
              ^
0_0_33841703_882.cpp:14:21: error: array bound is not an integer constant before ']' token
 int n, rank[N], sa[N], height[N], tmp[N], cnt[N]; char s[N];
                     ^
0_0_33841703_882.cpp:14:32: error: array bound is not an integer constant before ']' token
 int n, rank[N], sa[N], height[N], tmp[N], cnt[N]; char s[N];
                                ^
0_0_33841703_882.cpp:14:40: error: array bound is not an integer constant before ']' token
 int n, rank[N], sa[N], height[N], tmp[N], cnt[N]; char s[N];
                                        ^
0_0_33841703_882.cpp:14:48: error: array bound is not an integer constant before ']' token
 int n, rank[N], sa[N], height[N], tmp[N], cnt[N]; char s[N];
                                                ^
0_0_33841703_882.cpp:14:59: error: array bound is not an integer constant before ']' token
 int n, rank[N], sa[N], height[N], tmp[N], cnt[N]; char s[N];
                                                           ^
0_0_33841703_882.cpp: In function 'void suffixarray(int, int)':
0_0_33841703_882.cpp:17:38: error: missing template arguments before '[' token
     for(i = 0; i < n*2 + 5; i++) rank[i] = sa[i] = height[i] = tmp[i] = 0;
                                      ^
0_0_33841703_882.cpp:17:44: error: 'sa' was not declared in this scope
     for(i = 0; i < n*2 + 5; i++) rank[i] = sa[i] = height[i] = tmp[i] = 0;
                                            ^
0_0_33841703_882.cpp:17:52: error: 'height' was not declared in this scope
     for(i = 0; i < n*2 + 5; i++) rank[i] = sa[i] = height[i] = tmp[i] = 0;
                                                    ^
0_0_33841703_882.cpp:17:64: error: 'tmp' was not declared in this scope
     for(i = 0; i < n*2 + 5; i++) rank[i] = sa[i] = height[i] = tmp[i] = 0;
                                                                ^
0_0_33841703_882.cpp:18:28: error: 'cnt' was not declared in this scope
     for(i = 0; i < m; i++) cnt[i] = 0;
                            ^
0_0_33841703_882.cpp:19:28: error: 'cnt' was not declared in this scope
     for(i = 0; i < n; i++) cnt[rank[i] = s[i]]++;
                            ^
0_0_33841703_882.cpp:19:36: error: missing template arguments before '[' token
     for(i = 0; i < n; i++) cnt[rank[i] = s[i]]++;
                                    ^
0_0_33841703_882.cpp:19:42: error: 's' was not declared in this scope
     for(i = 0; i < n; i++) cnt[rank[i] = s[i]]++;
                                          ^
0_0_33841703_882.cpp:20:28: error: 'cnt' was not declared in this scope
     for(i = 1; i < m; i++) cnt[i] += cnt[i-1];
                            ^
0_0_33841703_882.cpp:21:28: error: 'sa' was not declared in this scope
     for(i = 0; i < n; i++) sa[--cnt[rank[i]]] = i;
                            ^
0_0_33841703_882.cpp:21:33: error: 'cnt' was not declared in this scope
     for(i = 0; i < n; i++) sa[--cnt[rank[i]]] = i;
                                 ^
0_0_33841703_882.cpp:21:41: error: missing template arguments before '[' token
     for(i = 0; i < n; i++) sa[--cnt[rank[i]]] = i;
                                         ^
0_0_33841703_882.cpp:24:17: error: 'sa' was not declared in this scope
             j = sa[i] - k;
                 ^
0_0_33841703_882.cpp:26:13: error: 'tmp' was not declared in this scope
             tmp[cnt[rank[j]]++] = j;
             ^
0_0_33841703_882.cpp:26:17: error: 'cnt' was not declared in this scope
             tmp[cnt[rank[j]]++] = j;
                 ^
0_0_33841703_882.cpp:26:25: error: missing template arguments before '[' token
             tmp[cnt[rank[j]]++] = j;
                         ^
0_0_33841703_882.cpp:28:9: error: 'sa' was not declared in this scope
         sa[tmp[cnt[0] = 0]] = j = 0;
         ^
0_0_33841703_882.cpp:28:12: error: 'tmp' was not declared in this scope
         sa[tmp[cnt[0] = 0]] = j = 0;
            ^
0_0_33841703_882.cpp:28:16: error: 'cnt' was not declared in this scope
         sa[tmp[cnt[0] = 0]] = j = 0;
                ^
0_0_33841703_882.cpp:30:20: error: missing template arguments before '[' token
             if(rank[tmp[i]] != rank[tmp[i-1]] 
                    ^
0_0_33841703_882.cpp:30:36: error: missing template arguments before '[' token
             if(rank[tmp[i]] != rank[tmp[i-1]] 
                                    ^
0_0_33841703_882.cpp:31:24: error: missing template arguments before '[' token
                 || rank[tmp[i]+k] != rank[tmp[i-1]+k]) cnt[++j] = i;
                        ^
0_0_33841703_882.cpp:31:42: error: missing template arguments before '[' token
                 || rank[tmp[i]+k] != rank[tmp[i-1]+k]) cnt[++j] = i;
                                          ^
0_0_33841703_882.cpp:34:20: error: missing template arguments before ',' token
         memcpy(rank, sa, n*sizeof(int));
                    ^
0_0_33841703_882.cpp:38:17: error: missing template arguments before '[' token
     for(j = rank[height[i=k=0]=0]; i < n-1; i++, k++)
                 ^
0_0_33841703_882.cpp:38:18: error: 'height' was not declared in this scope
     for(j = rank[height[i=k=0]=0]; i < n-1; i++, k++)
                  ^
0_0_33841703_882.cpp:39:21: error: 's' was not declared in this scope
         while(~k && s[i] != s[sa[j-1]+k]) height[j] = k--, j = rank[sa[j]+1];
                     ^
0_0_33841703_882.cpp:39:31: error: 'sa' was not declared in this scope
         while(~k && s[i] != s[sa[j-1]+k]) height[j] = k--, j = rank[sa[j]+1];
                               ^
0_0_33841703_882.cpp:39:68: error: missing template arguments before '[' token
         while(~k && s[i] != s[sa[j-1]+k]) height[j] = k--, j = rank[sa[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-23 00:47:25, Gzip enabled