0_0_25663072_5588.cpp:6:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_25663072_5588.cpp:10:8: error: redeclaration of 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:10:2: note: previous declaration 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:10:14: error: redeclaration of 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:10:2: note: previous declaration 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:11:2: error: redeclaration of 'int& Node::nbsp'
bool operator<(const Node& a)const{
^
0_0_25663072_5588.cpp:10:2: note: previous declaration 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:11:8: error: redeclaration of 'int& Node::nbsp'
bool operator<(const Node& a)const{
^
0_0_25663072_5588.cpp:10:2: note: previous declaration 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:11:14: error: redeclaration of 'int& Node::nbsp'
bool operator<(const Node& a)const{
^
0_0_25663072_5588.cpp:10:2: note: previous declaration 'int& Node::nbsp'
int from,to,dist;
^
0_0_25663072_5588.cpp:14:17: error: use of deleted function 'Node::Node()'
}edges[maxn*maxn];
^
0_0_25663072_5588.cpp:9:8: note: 'Node::Node()' is implicitly deleted because the default definition would be ill-formed:
struct Node{
^
0_0_25663072_5588.cpp:9:8: error: uninitialized reference member in 'struct Node'
0_0_25663072_5588.cpp:10:2: note: 'int& Node::nbsp' should be initialized
int from,to,dist;
^
0_0_25663072_5588.cpp: In function 'void Init()':
0_0_25663072_5588.cpp:18:2: error: 'nbsp' was not declared in this scope
for(int i = 0;i <= n;++i) f[i] = i;
^
0_0_25663072_5588.cpp: In function 'int Find(int)':
0_0_25663072_5588.cpp:22:2: error: 'nbsp' was not declared in this scope
if(x==f[x])
^
0_0_25663072_5588.cpp: In function 'void Union(int, int)':
0_0_25663072_5588.cpp:28:2: error: 'nbsp' was not declared in this scope
int a = Find(u),b = Find(v);
^
0_0_25663072_5588.cpp: In function 'int main()':
0_0_25663072_5588.cpp:34:2: error: 'nbsp' was not declared in this scope
while(~scanf("%d%d",&n,&m))
^
0_0_25663072_5588.cpp:37:89: error: 'i' was not declared in this scope
scanf("%d%d%d",&edges[i].from,&edges[i].to,&edges[i].dist);
^
0_0_25663072_5588.cpp:56:73: error: 'else' without a previous 'if'
else
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_25663072_5588.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = Node*]'
0_0_25663072_5588.cpp:38:67: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:17: error: use of deleted function 'Node& Node::operator=(Node&&)'
*__first = _GLIBCXX_MOVE(__val);
^
0_0_25663072_5588.cpp:9:8: note: 'Node& Node::operator=(Node&&)' is implicitly deleted because the default definition would be ill-formed:
struct Node{
^
0_0_25663072_5588.cpp:9:8: error: non-static reference member 'int& Node::nbsp', can't use default assignment operator
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_25663072_5588.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1676:50: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Node*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = Node*]'
0_0_25663072_5588.cpp:38:67: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:244:17: error: use of deleted function 'Node& Node::operator=(Node&&)'
*__result = _GLIBCXX_MOVE(*__first);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = Node*; _Distance = long long int; _Tp = Node; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:334:15: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Node*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Node*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = Node*]'
0_0_25663072_5588.cpp:38:67: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:218:29: error: use of deleted function 'Node& Node::operator=(Node&&)'
*(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first + __secondChild));
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:224:29: error: use of deleted function 'Node& Node::operator=(Node&&)'
*(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
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_25663072_5588.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h: In instantiation of 'void std::swap(_Tp&, _Tp&) [with _Tp = Node]':
|