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_22393080_5388.cpp:10:40: error: expected initializer before '&' token
 int  LH [MAXN], RH [MAXN], L [MAXN], R & lt [MAXN], O [MAXN], X-[MAXN];  
                                        ^
0_0_22393080_5388.cpp:13:6: error: expected unqualified-id before '[' token
 int  [hei], u [MAXM], f [MAXM], f [MAXM], f [MAXM]  
      ^
0_0_22393080_5388.cpp: In function 'int find(int)':
0_0_22393080_5388.cpp:15:32: error: 'f' was not declared in this scope
 int  find ( int  x) {  return  f [x] == x? x: f [x] = find (f [x]);}  
                                ^
0_0_22393080_5388.cpp: In function 'int merge(int, int)':
0_0_22393080_5388.cpp:19:9: error: 'v' was not declared in this scope
     if (v [x]> v [y]) swap (x, y);  
         ^
0_0_22393080_5388.cpp:20:5: error: 'r' was not declared in this scope
     r [x] = merge (r [x], y);  
     ^
0_0_22393080_5388.cpp:21:9: error: 'h' was not declared in this scope
     if (h [l [x]] <h [r [x]]) swap (l [x], r [x]);  
         ^
0_0_22393080_5388.cpp:21:12: error: 'l' was not declared in this scope
     if (h [l [x]] <h [r [x]]) swap (l [x], r [x]);  
            ^
0_0_22393080_5388.cpp:22:5: error: 'h' was not declared in this scope
     h [x] = h [r [x]] + 1;  
     ^
0_0_22393080_5388.cpp: In function 'void Union(int, int)':
0_0_22393080_5388.cpp:29:5: error: 'f' was not declared in this scope
     f [y] = x;  
     ^
0_0_22393080_5388.cpp:32:12: error: 'R' was not declared in this scope
         L [R [x]] = x;  
            ^
0_0_22393080_5388.cpp:37:9: error: 'R' was not declared in this scope
         R [L [x]] = x;  
         ^
0_0_22393080_5388.cpp:40:5: error: 'heap' was not declared in this scope
     heap [x] = merge (heap [x], heap [y]);  
     ^
0_0_22393080_5388.cpp:41:5: error: 'X' was not declared in this scope
     X [x] + = X [y];  
     ^
0_0_22393080_5388.cpp:41:13: error: expected primary-expression before '=' token
     X [x] + = X [y];  
             ^
0_0_22393080_5388.cpp:42:5: error: 'O' was not declared in this scope
     O [x] + = O [y];  
     ^
0_0_22393080_5388.cpp:42:13: error: expected primary-expression before '=' token
     O [x] + = O [y];  
             ^
0_0_22393080_5388.cpp: In function 'int pop(int)':
0_0_22393080_5388.cpp:45:20: error: 'l' was not declared in this scope
     return  merge (l [x], r [x]);  
                    ^
0_0_22393080_5388.cpp:45:27: error: 'r' was not declared in this scope
     return  merge (l [x], r [x]);  
                           ^
0_0_22393080_5388.cpp: In function 'int main()':
0_0_22393080_5388.cpp:51:15: error: expected primary-expression before ')' token
     while (T -) {  
               ^
0_0_22393080_5388.cpp:60:13: error: 'R' was not declared in this scope
             R [i] = i + 1;  
             ^
0_0_22393080_5388.cpp:63:17: error: 'heap' was not declared in this scope
         memset (heap, 0, sizeof (heap));  
                 ^
0_0_22393080_5388.cpp:64:9: error: 'tot' was not declared in this scope
         tot = 0;  
         ^
0_0_22393080_5388.cpp:65:19: error: expected primary-expression before ')' token
         while (m -) {  
                   ^
0_0_22393080_5388.cpp:73:17: error: 'v' was not declared in this scope
                 v [++ tot] = y;  
                 ^
0_0_22393080_5388.cpp:74:17: error: 'l' was not declared in this scope
                 l [tot] = r [tot] = h [tot] = 0;  
                 ^
0_0_22393080_5388.cpp:74:27: error: 'r' was not declared in this scope
                 l [tot] = r [tot] = h [tot] = 0;  
                           ^
0_0_22393080_5388.cpp:74:37: error: 'h' was not declared in this scope
                 l [tot] = r [tot] = h [tot] = 0;  
                                     ^
0_0_22393080_5388.cpp:78:41: error: 'f' was not declared in this scope
         for ( int  i = 1; i <= n; ++ i) f [i] = i;  
                                         ^
0_0_22393080_5388.cpp:80:41: error: 'O' was not declared in this scope
         for ( int  i = 1; i <= n; ++ i) O [i] = X [i] = 0;  
                                         ^
0_0_22393080_5388.cpp:80:49: error: 'X' was not declared in this scope
         for ( int  i = 1; i <= n; ++ i) O [i] = X [i] = 0;  
                                                 ^
0_0_22393080_5388.cpp:89:27: error: 'R' was not declared in this scope
                 Union (x, R [x]);  
                           ^
0_0_22393080_5388.cpp:92:28: error: expected ')' before '!' token
             while (heap [x]! = 0 && v [heap [x]] <y) {  
                            ^
0_0_22393080_5388.cpp:92:30: error: expected primary-expression before '=' token
             while (heap [x]! = 0 && v [heap [x]] <y) {  
                              ^
0_0_22393080_5388.cpp:92:37: error: 'v' was not declared in this scope
             while (heap [x]! = 0 && v [heap [x]] <y) {  
                                     ^
0_0_22393080_5388.cpp:96:20: error: 'O' was not declared in this scope
             if (++ O [x]> = X [x]) {  
                    ^
0_0_22393080_5388.cpp:96:27: error: expected primary-expression before '=' token
             if (++ O [x]> = X [x]) {  
                           ^
0_0_22393080_5388.cpp:96:29: error: 'X' was not declared in this scope
             if (++ O [x]> = X [x]) {  
                             ^
0_0_22393080_5388.cpp:97:23: error: expected primary-expression before '=' token
                 ans + = (O [x] -X [x]);  
                       ^


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 07:50:25, Gzip enabled