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_39826862_19472.cpp:6:9: error: 'MAXX' was not declared in this scope; did you mean 'MAX'?
    6 | int faa[MAXX];
      |         ^~~~
      |         MAX
0_0_39826862_19472.cpp: In function 'int find(int)':
0_0_39826862_19472.cpp:10:13: error: 'faa' was not declared in this scope
   10 |     if(x == faa[x])
      |             ^~~
0_0_39826862_19472.cpp:12:5: error: 'faa' was not declared in this scope
   12 |     faa[x] = find(faa[x]);
      |     ^~~
0_0_39826862_19472.cpp: At global scope:
0_0_39826862_19472.cpp:15:14: error: 'MAXX' was not declared in this scope; did you mean 'MAX'?
   15 | int union_nn[MAXX];
      |              ^~~~
      |              MAX
0_0_39826862_19472.cpp: In function 'int main()':
0_0_39826862_19472.cpp:27:12: error: 'union_nn' was not declared in this scope; did you mean 'union'?
   27 |     memset(union_nn, 0, sizeof(union_nn));
      |            ^~~~~~~~
      |            union
0_0_39826862_19472.cpp:29:24: error: 'MAXX' was not declared in this scope; did you mean 'MAX'?
   29 |     for(int i = 1; i < MAXX; i++)
      |                        ^~~~
      |                        MAX
0_0_39826862_19472.cpp:31:9: error: 'faa' was not declared in this scope
   31 |         faa[i] = i;
      |         ^~~
0_0_39826862_19472.cpp:44:32: error: 'MAXX' was not declared in this scope; did you mean 'MAX'?
   44 |             for(int i = 1; i < MAXX; i++)
      |                                ^~~~
      |                                MAX
0_0_39826862_19472.cpp:45:17: error: 'faa' was not declared in this scope
   45 |                 faa[i] = i;
      |                 ^~~
0_0_39826862_19472.cpp:57:33: error: 'faa' was not declared in this scope
   57 |         if((root1 == root2) || (faa[b] != b))
      |                                 ^~~
0_0_39826862_19472.cpp:67:9: error: 'faa' was not declared in this scope
   67 |         faa[root2] = root1;
      |         ^~~


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-25 03:48:32, Gzip enabled