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_13798793_13067.cpp:1:532: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
 #include<iostream>using namespace std;int f[10000001];int has[10000001];int big;int find(int a){ if(f[a]!=a){  f[a]=find(f[a]); } return f[a];}void make(int a,int b){ int a1=find(a); int b1=find(b); if(a1!=b1){  f[b1]=a1;  has[a1]+=has[b1];  if(has[a1]>big){   big=has[a1];  } }}void init(){ for(int i=1;i<=10000000;i++){  f[i]=i;  has[i]=1; } }int main(){ int number; while(scanf("%d",&number)!=EOF){  big=1;  init();  for(int i=1;i<=number;i++){   int a,b;   scanf("%d%d",&a,&b);   make(a,b);  }  printf("%d\n",big); } return 0;}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
compilation terminated.


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-27 10:40:10, Gzip enabled