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_37047814_14021.cpp: In function 'void get_SA()':
0_0_37047814_14021.cpp:10:18: error: 'm' was not declared in this scope
  for (int i=1;i<=m;i++) c[i]=0;
                  ^
0_0_37047814_14021.cpp:11:27: error: 'height' was not declared in this scope
  for (int i=1;i<=n+1;i++) height[i]=0;
                           ^
0_0_37047814_14021.cpp:13:25: error: 'rk' was not declared in this scope
  for (int i=1;i<=n;i++) rk[i]=0;
                         ^
0_0_37047814_14021.cpp:14:12: error: expected ';' before 'i'
  for (rint i=1;i<=n;++i) ++c[x[i]=s[i]];
            ^
0_0_37047814_14021.cpp:14:15: error: statement cannot resolve address of overloaded function
  for (rint i=1;i<=n;++i) ++c[x[i]=s[i]];
               ^
0_0_37047814_14021.cpp:14:16: error: 'i' was not declared in this scope
  for (rint i=1;i<=n;++i) ++c[x[i]=s[i]];
                ^
0_0_37047814_14021.cpp:14:30: error: 'x' was not declared in this scope
  for (rint i=1;i<=n;++i) ++c[x[i]=s[i]];
                              ^
0_0_37047814_14021.cpp:17:15: error: expected ';' before 'i'
     for (rint i=2;i<=m;++i) c[i]+=c[i-1]; 
               ^
0_0_37047814_14021.cpp:17:18: error: statement cannot resolve address of overloaded function
     for (rint i=2;i<=m;++i) c[i]+=c[i-1]; 
                  ^
0_0_37047814_14021.cpp:17:19: error: 'i' was not declared in this scope
     for (rint i=2;i<=m;++i) c[i]+=c[i-1]; 
                   ^
0_0_37047814_14021.cpp:17:22: error: 'm' was not declared in this scope
     for (rint i=2;i<=m;++i) c[i]+=c[i-1]; 
                      ^
0_0_37047814_14021.cpp:19:15: error: expected ';' before 'i'
     for (rint i=n;i>=1;--i) sa[c[x[i]]--]=i; 
               ^
0_0_37047814_14021.cpp:19:18: error: statement cannot resolve address of overloaded function
     for (rint i=n;i>=1;--i) sa[c[x[i]]--]=i; 
                  ^
0_0_37047814_14021.cpp:19:19: error: 'i' was not declared in this scope
     for (rint i=n;i>=1;--i) sa[c[x[i]]--]=i; 
                   ^
0_0_37047814_14021.cpp:19:34: error: 'x' was not declared in this scope
     for (rint i=n;i>=1;--i) sa[c[x[i]]--]=i; 
                                  ^
0_0_37047814_14021.cpp:20:15: error: expected ';' before 'k'
     for (rint k=1;k<=n;k<<=1)
               ^
0_0_37047814_14021.cpp:20:18: error: statement cannot resolve address of overloaded function
     for (rint k=1;k<=n;k<<=1)
                  ^
0_0_37047814_14021.cpp:20:19: error: 'k' was not declared in this scope
     for (rint k=1;k<=n;k<<=1)
                   ^
0_0_37047814_14021.cpp:22:14: error: expected ';' before 'num'
         rint num=0;
              ^
0_0_37047814_14021.cpp:22:19: error: statement cannot resolve address of overloaded function
         rint num=0;
                   ^
0_0_37047814_14021.cpp:23:19: error: expected ';' before 'i'
         for (rint i=n-k+1;i<=n;++i) y[++num]=i;
                   ^
0_0_37047814_14021.cpp:23:26: error: statement cannot resolve address of overloaded function
         for (rint i=n-k+1;i<=n;++i) y[++num]=i;
                          ^
0_0_37047814_14021.cpp:23:27: error: 'i' was not declared in this scope
         for (rint i=n-k+1;i<=n;++i) y[++num]=i;
                           ^
0_0_37047814_14021.cpp:23:37: error: 'y' was not declared in this scope
         for (rint i=n-k+1;i<=n;++i) y[++num]=i;
                                     ^
0_0_37047814_14021.cpp:23:41: error: 'num' was not declared in this scope
         for (rint i=n-k+1;i<=n;++i) y[++num]=i;
                                         ^
0_0_37047814_14021.cpp:26:19: error: expected ';' before 'i'
         for (rint i=1;i<=n;++i) if (sa[i]>k) y[++num]=sa[i]-k;
                   ^
0_0_37047814_14021.cpp:26:22: error: statement cannot resolve address of overloaded function
         for (rint i=1;i<=n;++i) if (sa[i]>k) y[++num]=sa[i]-k;
                      ^
0_0_37047814_14021.cpp:26:23: error: 'i' was not declared in this scope
         for (rint i=1;i<=n;++i) if (sa[i]>k) y[++num]=sa[i]-k;
                       ^
0_0_37047814_14021.cpp:26:46: error: 'y' was not declared in this scope
         for (rint i=1;i<=n;++i) if (sa[i]>k) y[++num]=sa[i]-k;
                                              ^
0_0_37047814_14021.cpp:26:50: error: 'num' was not declared in this scope
         for (rint i=1;i<=n;++i) if (sa[i]>k) y[++num]=sa[i]-k;
                                                  ^
0_0_37047814_14021.cpp:30:19: error: expected ';' before 'i'
         for (rint i=1;i<=m;++i) c[i]=0;
                   ^
0_0_37047814_14021.cpp:30:22: error: statement cannot resolve address of overloaded function
         for (rint i=1;i<=m;++i) c[i]=0;
                      ^
0_0_37047814_14021.cpp:30:23: error: 'i' was not declared in this scope
         for (rint i=1;i<=m;++i) c[i]=0;
                       ^
0_0_37047814_14021.cpp:30:26: error: 'm' was not declared in this scope
         for (rint i=1;i<=m;++i) c[i]=0;
                          ^
0_0_37047814_14021.cpp:32:19: error: expected ';' before 'i'
         for (rint i=1;i<=n;++i) ++c[x[i]];
                   ^
0_0_37047814_14021.cpp:32:22: error: statement cannot resolve address of overloaded function
         for (rint i=1;i<=n;++i) ++c[x[i]];
                      ^
0_0_37047814_14021.cpp:32:23: error: 'i' was not declared in this scope
         for (rint i=1;i<=n;++i) ++c[x[i]];
                       ^
0_0_37047814_14021.cpp:32:37: error: 'x' was not declared in this scope
         for (rint i=1;i<=n;++i) ++c[x[i]];
                                     ^
0_0_37047814_14021.cpp:34:19: error: expected ';' before 'i'
         for (rint i=2;i<=m;++i) c[i]+=c[i-1];//第一关键字排名为1~i的数有多少个 
                   ^
0_0_37047814_14021.cpp:34:22: error: statement cannot resolve address of overloaded function
         for (rint i=2;i<=m;++i) c[i]+=c[i-1];//第一关键字排名为1~i的数有多少个 
                      ^
0_0_37047814_14021.cpp:34:23: error: 'i' was not declared in this scope
         for (rint i=2;i<=m;++i) c[i]+=c[i-1];//第一关键字排名为1~i的数有多少个 
                       ^
0_0_37047814_14021.cpp:34:26: error: 'm' was not declared in this scope
         for (rint i=2;i<=m;++i) c[i]+=c[i-1];//第一关键字排名为1~i的数有多少个 
                          ^
0_0_37047814_14021.cpp:35:19: error: expected ';' before 'i'
         for (rint i=n;i>=1;--i) sa[c[x[y[i]]]--]=y[i],y[i]=0;
                   ^
0_0_37047814_14021.cpp:35:22: error: statement cannot resolve address of overloaded function
         for (rint i=n;i>=1;--i) sa[c[x[y[i]]]--]=y[i],y[i]=0;
                      ^
0_0_37047814_14021.cpp:35:23: error: 'i' was not declared in this scope
         for (rint i=n;i>=1;--i) sa[c[x[y[i]]]--]=y[i],y[i]=0;
                       ^
0_0_37047814_14021.cpp:35:38: error: 'x' was not declared in this scope
         for (rint i=n;i>=1;--i) sa[c[x[y[i]]]--]=y[i],y[i]=0;
                                      ^
0_0_37047814_14021.cpp:35:40: error: 'y' was not declared in this scope
         for (rint i=n;i>=1;--i) sa[c[x[y[i]]]--]=y[i],y[i]=0;
                                        ^
0_0_37047814_14021.cpp:39:14: error: 'x' was not declared in this scope
         swap(x,y);
              ^
0_0_37047814_14021.cpp:39:16: error: 'y' was not declared in this scope
         swap(x,y);
                ^
0_0_37047814_14021.cpp:41:20: error: 'num' was not declared in this scope
         x[sa[1]]=1;num=1;
                    ^
0_0_37047814_14021.cpp:42:19: error: expected ';' before 'i'
         for (rint i=2;i<=n;++i)
                   ^
0_0_37047814_14021.cpp:42:22: error: statement cannot resolve address of overloaded function
         for (rint i=2;i<=n;++i)
                      ^
0_0_37047814_14021.cpp:42:23: error: 'i' was not declared in this scope
         for (rint i=2;i<=n;++i)
                       ^
0_0_37047814_14021.cpp:46:9: error: 'm' was not declared in this scope
         m=num;
         ^
0_0_37047814_14021.cpp: In function 'void get_height()':
0_0_37047814_14021.cpp:53:10: error: expected ';' before 'k'
     rint k=0;
          ^
0_0_37047814_14021.cpp:53:13: error: statement cannot resolve address of overloaded function
     rint k=0;
             ^
0_0_37047814_14021.cpp:54:5: error: 'height' was not declared in this scope
     height[1]=height[0]=0;
     ^
0_0_37047814_14021.cpp:55:15: error: expected ';' before 'i'
     for (rint i=1;i<=n;++i) rk[sa[i]]=i;
               ^
0_0_37047814_14021.cpp:55:18: error: statement cannot resolve address of overloaded function
     for (rint i=1;i<=n;++i) rk[sa[i]]=i;
                  ^
0_0_37047814_14021.cpp:55:19: error: 'i' was not declared in this scope
     for (rint i=1;i<=n;++i) rk[sa[i]]=i;
                   ^
0_0_37047814_14021.cpp:55:29: error: 'rk' was not declared in this scope
     for (rint i=1;i<=n;++i) rk[sa[i]]=i;
                             ^
0_0_37047814_14021.cpp:56:15: error: expected ';' before 'i'
     for (rint i=1;i<=n;++i)  
               ^
0_0_37047814_14021.cpp:56:18: error: statement cannot resolve address of overloaded function
     for (rint i=1;i<=n;++i)  
                  ^
0_0_37047814_14021.cpp:56:19: error: 'i' was not declared in this scope
     for (rint i=1;i<=n;++i)  
                   ^
0_0_37047814_14021.cpp:58:13: error: 'rk' was not declared in this scope
         if (rk[i]==1) continue;//第一名height为0 
             ^
0_0_37047814_14021.cpp:59:13: error: 'k' was not declared in this scope
         if (k) --k;//h[i]>=h[i-1]+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-22 19:06:43, Gzip enabled