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_26161159_5133.cpp:3:1: error: 'set' does not name a type
 set<int> s;
 ^
0_0_26161159_5133.cpp: In function 'void init()':
0_0_26161159_5133.cpp:7:9: error: 'Set' was not declared in this scope
         Set[i] = i;
         ^
0_0_26161159_5133.cpp: In function 'int FindSet(int)':
0_0_26161159_5133.cpp:12:13: error: 'Set' was not declared in this scope
     if(x != Set[x])
             ^
0_0_26161159_5133.cpp:16:12: error: 'Set' was not declared in this scope
     return Set[x];
            ^
0_0_26161159_5133.cpp: In function 'bool UnionSet(int, int)':
0_0_26161159_5133.cpp:26:9: error: 'Set' was not declared in this scope
         Set[y] = x;
         ^
0_0_26161159_5133.cpp: In function 'void print()':
0_0_26161159_5133.cpp:33:17: error: 's' was not declared in this scope
     if (flag && s.size() == sum + 1)
                 ^
0_0_26161159_5133.cpp:34:23: error: 'printf' was not declared in this scope
         printf("Yes\n");
                       ^
0_0_26161159_5133.cpp:36:22: error: 'printf' was not declared in this scope
         printf("No\n");
                      ^
0_0_26161159_5133.cpp:37:5: error: 's' was not declared in this scope
     s.clear();
     ^
0_0_26161159_5133.cpp: In function 'int main()':
0_0_26161159_5133.cpp:47:27: error: 'scanf' was not declared in this scope
         scanf("%d%d",&a,&b);
                           ^
0_0_26161159_5133.cpp:57:9: error: 's' was not declared in this scope
         s.insert(a);
         ^


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-17 19:01:54, Gzip enabled