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_38310343_11173.cpp:6:1: error: missing terminating ' character
 constexpr int n_max(20'0000);
 ^
0_0_38310343_11173.cpp:8:1: error: expected ')' before 'int'
 int sa[n_max + 1], rk[n_max + 1], height[n_max + 1];
 ^
0_0_38310343_11173.cpp:8:20: error: 'rk' was not declared in this scope
 int sa[n_max + 1], rk[n_max + 1], height[n_max + 1];
                    ^
0_0_38310343_11173.cpp:8:35: error: 'height' was not declared in this scope
 int sa[n_max + 1], rk[n_max + 1], height[n_max + 1];
                                   ^
0_0_38310343_11173.cpp: In function 'void init()':
0_0_38310343_11173.cpp:15:10: error: 'c' was not declared in this scope
   memset(c, 0x00, sizeof c);
          ^
0_0_38310343_11173.cpp:17:37: error: 'x' was not declared in this scope
   for (int i(1); i <= tot; ++i) ++c[x[i] = s[i]];
                                     ^
0_0_38310343_11173.cpp:17:44: error: 's' was not declared in this scope
   for (int i(1); i <= tot; ++i) ++c[x[i] = s[i]];
                                            ^
0_0_38310343_11173.cpp:19:28: error: 'sa' was not declared in this scope
   for (int i(tot); i; --i) sa[c[x[i]]--] = i;
                            ^
0_0_38310343_11173.cpp:19:33: error: 'x' was not declared in this scope
   for (int i(tot); i; --i) sa[c[x[i]]--] = i;
                                 ^
0_0_38310343_11173.cpp:22:45: error: 'y' was not declared in this scope
     for (int i(tot - k + 1); i <= tot; ++i) y[++num] = i;
                                             ^
0_0_38310343_11173.cpp:23:39: error: 'sa' was not declared in this scope
     for (int i(1); i <= tot; ++i) if (sa[i] > k) y[++num] = sa[i] - k;
                                       ^
0_0_38310343_11173.cpp:23:50: error: 'y' was not declared in this scope
     for (int i(1); i <= tot; ++i) if (sa[i] > k) y[++num] = sa[i] - k;
                                                  ^
0_0_38310343_11173.cpp:25:39: error: 'x' was not declared in this scope
     for (int i(1); i <= tot; ++i) ++c[x[i]];
                                       ^
0_0_38310343_11173.cpp:27:30: error: 'sa' was not declared in this scope
     for (int i(tot); i; --i) sa[c[x[y[i]]]--] = y[i];
                              ^
0_0_38310343_11173.cpp:27:35: error: 'x' was not declared in this scope
     for (int i(tot); i; --i) sa[c[x[y[i]]]--] = y[i];
                                   ^
0_0_38310343_11173.cpp:27:37: error: 'y' was not declared in this scope
     for (int i(tot); i; --i) sa[c[x[y[i]]]--] = y[i];
                                     ^
0_0_38310343_11173.cpp:28:15: error: 'x' was not declared in this scope
     std::swap(x, y);
               ^
0_0_38310343_11173.cpp:28:18: error: 'y' was not declared in this scope
     std::swap(x, y);
                  ^
0_0_38310343_11173.cpp:29:16: error: 'sa' was not declared in this scope
     num = 1, x[sa[1]] = 1;
                ^
0_0_38310343_11173.cpp:37:33: error: 'rk' was not declared in this scope
   for (int i(1); i <= tot; ++i) rk[sa[i]] = i;
                                 ^
0_0_38310343_11173.cpp:37:36: error: 'sa' was not declared in this scope
   for (int i(1); i <= tot; ++i) rk[sa[i]] = i;
                                    ^
0_0_38310343_11173.cpp:39:9: error: 'rk' was not declared in this scope
     if (rk[i] == 1) continue;
         ^
0_0_38310343_11173.cpp:41:17: error: 'sa' was not declared in this scope
     const int j(sa[rk[i] - 1]);
                 ^
0_0_38310343_11173.cpp:41:20: error: 'rk' was not declared in this scope
     const int j(sa[rk[i] - 1]);
                    ^
0_0_38310343_11173.cpp:42:44: error: 's' was not declared in this scope
     while (i + k <= tot && j + k <= tot && s[i + k] == s[j + k]) ++k;
                                            ^
0_0_38310343_11173.cpp:43:5: error: 'height' was not declared in this scope
     height[rk[i]] = k;
     ^
0_0_38310343_11173.cpp: In function 'bool check(int)':
0_0_38310343_11173.cpp:50:9: error: 'height' was not declared in this scope
     if (height[i] >= cap) {
         ^
0_0_38310343_11173.cpp:51:16: error: 'idx' was not declared in this scope
       s.insert(idx[sa[i]]), s.insert(idx[sa[i - 1]]);
                ^
0_0_38310343_11173.cpp:51:20: error: 'sa' was not declared in this scope
       s.insert(idx[sa[i]]), s.insert(idx[sa[i - 1]]);
                    ^
0_0_38310343_11173.cpp: In function 'void solve()':
0_0_38310343_11173.cpp:61:10: error: 's' was not declared in this scope
   memset(s, 0x00, sizeof s), memset(t, 0x00, sizeof t);
          ^
0_0_38310343_11173.cpp:61:37: error: 't' was not declared in this scope
   memset(s, 0x00, sizeof s), memset(t, 0x00, sizeof t);
                                     ^
0_0_38310343_11173.cpp:62:10: error: 'idx' was not declared in this scope
   memset(idx, 0x00, sizeof idx);
          ^
0_0_38310343_11173.cpp:63:10: error: 'sa' was not declared in this scope
   memset(sa, 0x00, sizeof sa), memset(rk, 0x00, sizeof rk);
          ^
0_0_38310343_11173.cpp:63:39: error: 'rk' was not declared in this scope
   memset(sa, 0x00, sizeof sa), memset(rk, 0x00, sizeof rk);
                                       ^
0_0_38310343_11173.cpp:64:10: error: 'height' was not declared in this scope
   memset(height, 0x00, sizeof height);
          ^
0_0_38310343_11173.cpp:77:59: error: return-statement with a value, in function returning 'void' [-fpermissive]
   if (n == 1) return printf("%zu\n", strlen(t + 1)), void();
                                                           ^


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-06-28 02:32:15, Gzip enabled