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_29858101_15756.cpp:7:9: error: 'maxn' was not declared in this scope
  int sa[maxn], rk[maxn];
         ^
0_0_29858101_15756.cpp:7:19: error: 'maxn' was not declared in this scope
  int sa[maxn], rk[maxn];
                   ^
0_0_29858101_15756.cpp:33:13: error: 'maxn' was not declared in this scope
  int height[maxn];
             ^
0_0_29858101_15756.cpp:46:8: error: 'maxn' was not declared in this scope
  int d[maxn][30];
        ^
0_0_29858101_15756.cpp: In member function 'void suffixArray::build_sa(int, int, int*)':
0_0_29858101_15756.cpp:11:17: error: 'maxn' was not declared in this scope
   static int  t[maxn], t2[maxn], c[maxn];
                 ^
0_0_29858101_15756.cpp:12:12: error: 't' was not declared in this scope
   int *x = t, *y = t2;
            ^
0_0_29858101_15756.cpp:1:26: error: 'll' was not declared in this scope
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                          ^
0_0_29858101_15756.cpp:13:3: note: in expansion of macro 'F0'
   F0(i, 0, m)c[i] = 0;
   ^
0_0_29858101_15756.cpp:13:6: error: 'i' was not declared in this scope
   F0(i, 0, m)c[i] = 0;
      ^
0_0_29858101_15756.cpp:1:38: note: in definition of macro 'F0'
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                                      ^
0_0_29858101_15756.cpp:13:14: error: 'c' was not declared in this scope
   F0(i, 0, m)c[i] = 0;
              ^
0_0_29858101_15756.cpp:2:22: error: 'll' was not declared in this scope
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                      ^
0_0_29858101_15756.cpp:14:3: note: in expansion of macro 'F'
   F(i, 0, n)c[x[i] = str[i]]++;
   ^
0_0_29858101_15756.cpp:14:5: error: 'i' was not declared in this scope
   F(i, 0, n)c[x[i] = str[i]]++;
     ^
0_0_29858101_15756.cpp:2:31: note: in definition of macro 'F'
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                               ^
0_0_29858101_15756.cpp:14:13: error: 'c' was not declared in this scope
   F(i, 0, n)c[x[i] = str[i]]++;
             ^
0_0_29858101_15756.cpp:1:26: error: 'll' was not declared in this scope
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                          ^
0_0_29858101_15756.cpp:15:3: note: in expansion of macro 'F0'
   F0(i, 0, m)c[i] += c[i - 1];
   ^
0_0_29858101_15756.cpp:15:6: error: 'i' was not declared in this scope
   F0(i, 0, m)c[i] += c[i - 1];
      ^
0_0_29858101_15756.cpp:1:38: note: in definition of macro 'F0'
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                                      ^
0_0_29858101_15756.cpp:15:14: error: 'c' was not declared in this scope
   F0(i, 0, m)c[i] += c[i - 1];
              ^
0_0_29858101_15756.cpp:3:23: error: 'll' was not declared in this scope
 #define FN(i,a,b) for(ll i=(a);i>=ll(b);--i)
                       ^
0_0_29858101_15756.cpp:16:3: note: in expansion of macro 'FN'
   FN(i, n, 0)sa[--c[x[i]]] = i;
   ^
0_0_29858101_15756.cpp:16:6: error: 'i' was not declared in this scope
   FN(i, n, 0)sa[--c[x[i]]] = i;
      ^
0_0_29858101_15756.cpp:3:32: note: in definition of macro 'FN'
 #define FN(i,a,b) for(ll i=(a);i>=ll(b);--i)
                                ^
0_0_29858101_15756.cpp:16:14: error: 'sa' was not declared in this scope
   FN(i, n, 0)sa[--c[x[i]]] = i;
              ^
0_0_29858101_15756.cpp:16:19: error: 'c' was not declared in this scope
   FN(i, n, 0)sa[--c[x[i]]] = i;
                   ^
0_0_29858101_15756.cpp:2:22: error: 'll' was not declared in this scope
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                      ^
0_0_29858101_15756.cpp:20:4: note: in expansion of macro 'F'
    F(i, n + 1 - k, n)y[p++] = i;
    ^
0_0_29858101_15756.cpp:20:6: error: 'i' was not declared in this scope
    F(i, n + 1 - k, n)y[p++] = i;
      ^
0_0_29858101_15756.cpp:2:31: note: in definition of macro 'F'
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                               ^
0_0_29858101_15756.cpp:20:22: error: 'y' was not declared in this scope
    F(i, n + 1 - k, n)y[p++] = i;
                      ^
0_0_29858101_15756.cpp:2:22: error: 'll' was not declared in this scope
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                      ^
0_0_29858101_15756.cpp:21:4: note: in expansion of macro 'F'
    F(i, 0, n)if (sa[i] >= k) y[p++] = sa[i] - k;
    ^
0_0_29858101_15756.cpp:21:6: error: 'i' was not declared in this scope
    F(i, 0, n)if (sa[i] >= k) y[p++] = sa[i] - k;
      ^
0_0_29858101_15756.cpp:2:31: note: in definition of macro 'F'
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                               ^
0_0_29858101_15756.cpp:21:18: error: 'sa' was not declared in this scope
    F(i, 0, n)if (sa[i] >= k) y[p++] = sa[i] - k;
                  ^
0_0_29858101_15756.cpp:21:30: error: 'y' was not declared in this scope
    F(i, 0, n)if (sa[i] >= k) y[p++] = sa[i] - k;
                              ^
0_0_29858101_15756.cpp:1:26: error: 'll' was not declared in this scope
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                          ^
0_0_29858101_15756.cpp:22:4: note: in expansion of macro 'F0'
    F0(i, 0, m)c[i] = 0;
    ^
0_0_29858101_15756.cpp:22:7: error: 'i' was not declared in this scope
    F0(i, 0, m)c[i] = 0;
       ^
0_0_29858101_15756.cpp:1:38: note: in definition of macro 'F0'
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                                      ^
0_0_29858101_15756.cpp:22:15: error: 'c' was not declared in this scope
    F0(i, 0, m)c[i] = 0;
               ^
0_0_29858101_15756.cpp:2:22: error: 'll' was not declared in this scope
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                      ^
0_0_29858101_15756.cpp:23:4: note: in expansion of macro 'F'
    F(i, 0, n)c[x[y[i]]]++;
    ^
0_0_29858101_15756.cpp:23:6: error: 'i' was not declared in this scope
    F(i, 0, n)c[x[y[i]]]++;
      ^
0_0_29858101_15756.cpp:2:31: note: in definition of macro 'F'
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                               ^
0_0_29858101_15756.cpp:23:14: error: 'c' was not declared in this scope
    F(i, 0, n)c[x[y[i]]]++;
              ^
0_0_29858101_15756.cpp:23:18: error: 'y' was not declared in this scope
    F(i, 0, n)c[x[y[i]]]++;
                  ^
0_0_29858101_15756.cpp:1:26: error: 'll' was not declared in this scope
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                          ^
0_0_29858101_15756.cpp:24:4: note: in expansion of macro 'F0'
    F0(i, 1, m)c[i] += c[i - 1];
    ^
0_0_29858101_15756.cpp:24:7: error: 'i' was not declared in this scope
    F0(i, 1, m)c[i] += c[i - 1];
       ^
0_0_29858101_15756.cpp:1:38: note: in definition of macro 'F0'
 #define F0(i, a, n) for (ll i = (a); i < (n); i++)
                                      ^
0_0_29858101_15756.cpp:24:15: error: 'c' was not declared in this scope
    F0(i, 1, m)c[i] += c[i - 1];
               ^
0_0_29858101_15756.cpp:3:23: error: 'll' was not declared in this scope
 #define FN(i,a,b) for(ll i=(a);i>=ll(b);--i)
                       ^
0_0_29858101_15756.cpp:25:4: note: in expansion of macro 'FN'
    FN(i, n, 0)sa[--c[x[y[i]]]] = y[i];
    ^
0_0_29858101_15756.cpp:25:7: error: 'i' was not declared in this scope
    FN(i, n, 0)sa[--c[x[y[i]]]] = y[i];
       ^
0_0_29858101_15756.cpp:3:32: note: in definition of macro 'FN'
 #define FN(i,a,b) for(ll i=(a);i>=ll(b);--i)
                                ^
0_0_29858101_15756.cpp:25:15: error: 'sa' was not declared in this scope
    FN(i, n, 0)sa[--c[x[y[i]]]] = y[i];
               ^
0_0_29858101_15756.cpp:25:20: error: 'c' was not declared in this scope
    FN(i, n, 0)sa[--c[x[y[i]]]] = y[i];
                    ^
0_0_29858101_15756.cpp:25:24: error: 'y' was not declared in this scope
    FN(i, n, 0)sa[--c[x[y[i]]]] = y[i];
                        ^
0_0_29858101_15756.cpp:26:12: error: 'y' was not declared in this scope
    swap(x, y);
            ^
0_0_29858101_15756.cpp:26:13: error: 'swap' was not declared in this scope
    swap(x, y);
             ^
0_0_29858101_15756.cpp:27:13: error: 'sa' was not declared in this scope
    p = 1; x[sa[0]] = 0;
             ^
0_0_29858101_15756.cpp:2:22: error: 'll' was not declared in this scope
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                      ^
0_0_29858101_15756.cpp:28:4: note: in expansion of macro 'F'
    F(i, 1, n)x[sa[i]] = y[sa[i - 1]] == y[sa[i]] && y[sa[i - 1] + k] == y[sa[i] + k] ? p - 1 : p++;
    ^
0_0_29858101_15756.cpp:28:6: error: 'i' was not declared in this scope
    F(i, 1, n)x[sa[i]] = y[sa[i - 1]] == y[sa[i]] && y[sa[i - 1] + k] == y[sa[i] + k] ? p - 1 : p++;
      ^
0_0_29858101_15756.cpp:2:31: note: in definition of macro 'F'
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                               ^
0_0_29858101_15756.cpp: In member function 'void suffixArray::cal_height(int, int*)':
0_0_29858101_15756.cpp:2:22: error: 'll' was not declared in this scope
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                      ^
0_0_29858101_15756.cpp:36:3: note: in expansion of macro 'F'
   F(i, 1, n)rk[sa[i]] = i;// 因为sa[0]=n
   ^
0_0_29858101_15756.cpp:36:5: error: 'i' was not declared in this scope
   F(i, 1, n)rk[sa[i]] = i;// 因为sa[0]=n
     ^
0_0_29858101_15756.cpp:2:31: note: in definition of macro 'F'
 #define F(i,a,b) for(ll i=(a);i<=ll(b);++i)
                               ^
0_0_29858101_15756.cpp:36:13: error: 'rk' was not declared in this scope
   F(i, 1, n)rk[sa[i]] = i;// 因为sa[0]=n
             ^
0_0


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-29 09:19:10, Gzip enabled