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_22267283_29017.cpp:1:3: error: expected unqualified-id before 'for'
   for (i = 1; i <= n; i++) if (SA[i] > w) tp[++p] = SA[i] - w;
   ^
0_0_22267283_29017.cpp:1:15: error: 'i' does not name a type
   for (i = 1; i <= n; i++) if (SA[i] > w) tp[++p] = SA[i] - w;
               ^
0_0_22267283_29017.cpp:1:23: error: 'i' does not name a type
   for (i = 1; i <= n; i++) if (SA[i] > w) tp[++p] = SA[i] - w;
                       ^
0_0_22267283_29017.cpp:4:8: error: expected constructor, destructor, or type conversion before '(' token
   RSort(rank1,tp);
        ^
0_0_22267283_29017.cpp:6:3: error: 't' does not name a type
   t = rank1;
   ^
0_0_22267283_29017.cpp:7:3: error: 'rank1' does not name a type
   rank1 = tp;
   ^
0_0_22267283_29017.cpp:8:3: error: 'tp' does not name a type
   tp = t;
   ^
0_0_22267283_29017.cpp:9:3: error: 'rank1' does not name a type
   rank1[SA[1]] = p = 1;
   ^
0_0_22267283_29017.cpp:12:3: error: expected unqualified-id before 'for'
   for (i = 2; i <= n; i++) rank1[SA[i]] = cmp(tp, SA[i], SA[i - 1], w) ? p : ++p;
   ^
0_0_22267283_29017.cpp:12:15: error: 'i' does not name a type
   for (i = 2; i <= n; i++) rank1[SA[i]] = cmp(tp, SA[i], SA[i - 1], w) ? p : ++p;
               ^
0_0_22267283_29017.cpp:12:23: error: 'i' does not name a type
   for (i = 2; i <= n; i++) rank1[SA[i]] = cmp(tp, SA[i], SA[i - 1], w) ? p : ++p;
                       ^
0_0_22267283_29017.cpp:13:2: error: expected declaration before '}' token
  }
  ^


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-12-03 16:30:44, Gzip enabled