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.
|