0_0_15163067_57.cpp:51:2: error: stray '#' in program
}#include<iostream>
^
0_0_15163067_57.cpp: In function 'void init(int)':
0_0_15163067_57.cpp:12:3: error: reference to 'rank' is ambiguous
rank[i]=0;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp: In function 'void unite(int, int)':
0_0_15163067_57.cpp:24:6: error: reference to 'rank' is ambiguous
if (rank[x]<rank[y]) par[x]=y;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp:24:14: error: reference to 'rank' is ambiguous
if (rank[x]<rank[y]) par[x]=y;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp:27:8: error: reference to 'rank' is ambiguous
if (rank[x]==rank[y]) rank[x]++;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp:27:17: error: reference to 'rank' is ambiguous
if (rank[x]==rank[y]) rank[x]++;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp:27:26: error: reference to 'rank' is ambiguous
if (rank[x]==rank[y]) rank[x]++;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp: At global scope:
0_0_15163067_57.cpp:51:3: error: 'include' does not name a type
}#include<iostream>
^
0_0_15163067_57.cpp:54:11: error: redefinition of 'const int max_n'
const int max_n=1500;
^
0_0_15163067_57.cpp:4:11: note: 'const int max_n' previously defined here
const int max_n=1500;
^
0_0_15163067_57.cpp:55:14: error: redefinition of 'int par [1500]'
int par[max_n];
^
0_0_15163067_57.cpp:5:5: note: 'int par [1500]' previously declared here
int par[max_n];
^
0_0_15163067_57.cpp:56:15: error: redefinition of 'int rank [1500]'
int rank[max_n];
^
0_0_15163067_57.cpp:6:5: note: 'int rank [1500]' previously declared here
int rank[max_n];
^
0_0_15163067_57.cpp:57:15: error: redefinition of 'int node [1500]'
int node[max_n];
^
0_0_15163067_57.cpp:7:5: note: 'int node [1500]' previously declared here
int node[max_n];
^
0_0_15163067_57.cpp:58:5: error: redefinition of 'int n'
int n,m,a,b;
^
0_0_15163067_57.cpp:8:5: note: 'int n' previously declared here
int n,m,a,b;
^
0_0_15163067_57.cpp:58:7: error: redefinition of 'int m'
int n,m,a,b;
^
0_0_15163067_57.cpp:8:7: note: 'int m' previously declared here
int n,m,a,b;
^
0_0_15163067_57.cpp:58:9: error: redefinition of 'int a'
int n,m,a,b;
^
0_0_15163067_57.cpp:8:9: note: 'int a' previously declared here
int n,m,a,b;
^
0_0_15163067_57.cpp:58:11: error: redefinition of 'int b'
int n,m,a,b;
^
0_0_15163067_57.cpp:8:11: note: 'int b' previously declared here
int n,m,a,b;
^
0_0_15163067_57.cpp: In function 'void init(int)':
0_0_15163067_57.cpp:59:6: error: redefinition of 'void init(int)'
void init(int n){
^
0_0_15163067_57.cpp:9:6: note: 'void init(int)' previously defined here
void init(int n){
^
0_0_15163067_57.cpp:62:3: error: reference to 'rank' is ambiguous
rank[i]=0;
^
0_0_15163067_57.cpp:6:5: note: candidates are: int rank [1500]
int rank[max_n];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_15163067_57.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_15163067_57.cpp: In function 'int find(int)':
0_0_15163067_57.cpp:65:5: error: redefinit
|