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_38126539_26440.cpp:1:8: error: 'maxn' was not declared in this scope
 int fa[maxn];
        ^
0_0_38126539_26440.cpp: In function 'int find(int)':
0_0_38126539_26440.cpp:4:17: error: 'fa' was not declared in this scope
     return x == fa[x] ? x : fa[x] = find(fa[x]);
                 ^
0_0_38126539_26440.cpp: In function 'void merge(int, int)':
0_0_38126539_26440.cpp:8:5: error: 'fa' was not declared in this scope
     fa[x] = y;
     ^
0_0_38126539_26440.cpp: In function 'int main()':
0_0_38126539_26440.cpp:24:5: error: 'set' was not declared in this scope
     set<int> s;
     ^
0_0_38126539_26440.cpp:24:9: error: expected primary-expression before 'int'
     set<int> s;
         ^
0_0_38126539_26440.cpp:25:25: error: 'maxn' was not declared in this scope
     for (int i = 1; i < maxn; i++) fa[i] = i;
                         ^
0_0_38126539_26440.cpp:25:36: error: 'fa' was not declared in this scope
     for (int i = 1; i < maxn; i++) fa[i] = i;
                                    ^
0_0_38126539_26440.cpp:26:12: error: 'cin' was not declared in this scope
     while (cin >> n >> m) {
            ^
0_0_38126539_26440.cpp:29:13: error: 's' was not declared in this scope
             s.insert(n);
             ^
0_0_38126539_26440.cpp:36:39: error: 's' was not declared in this scope
             if ((edge != 0 && edge != s.size() - 1) || !ok) {
                                       ^
0_0_38126539_26440.cpp:37:17: error: 'cout' was not declared in this scope
                 cout << "Case " << ++kase << " is not a tree." << endl;
                 ^
0_0_38126539_26440.cpp:37:67: error: 'endl' was not declared in this scope
                 cout << "Case " << ++kase << " is not a tree." << endl;
                                                                   ^
0_0_38126539_26440.cpp:40:17: error: 'cout' was not declared in this scope
                 cout << "Case " << ++kase << " is a tree." << endl;
                 ^
0_0_38126539_26440.cpp:40:63: error: 'endl' was not declared in this scope
                 cout << "Case " << ++kase << " is a tree." << endl;
                                                               ^
0_0_38126539_26440.cpp:44:13: error: 's' was not declared in this scope
             s.clear();
             ^
0_0_38126539_26440.cpp:45:33: error: 'maxn' was not declared in this scope
             for (int i = 1; i < maxn; i++) fa[i] = i;
                                 ^
0_0_38126539_26440.cpp:45:44: error: 'fa' was not declared in this scope
             for (int i = 1; i < maxn; i++) fa[i] = i;
                                            ^


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-26 16:12:11, Gzip enabled