0_0_20284237_18019.cpp:8:8: error: redeclaration of 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:8:14: error: redeclaration of 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:8:20: error: redeclaration of 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:9:2: error: redeclaration of 'int& Edge::nbsp'
int next;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:9:8: error: redeclaration of 'int& Edge::nbsp'
int next;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:9:14: error: redeclaration of 'int& Edge::nbsp'
int next;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:9:20: error: redeclaration of 'int& Edge::nbsp'
int next;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:10:2: error: redeclaration of 'int& Edge::nbsp'
int lengh;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:10:8: error: redeclaration of 'int& Edge::nbsp'
int lengh;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:10:14: error: redeclaration of 'int& Edge::nbsp'
int lengh;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:10:20: error: redeclaration of 'int& Edge::nbsp'
int lengh;
^
0_0_20284237_18019.cpp:8:2: note: previous declaration 'int& Edge::nbsp'
int to;
^
0_0_20284237_18019.cpp:11:13: error: use of deleted function 'Edge::Edge()'
}edge[maxnum];
^
0_0_20284237_18019.cpp:7:8: note: 'Edge::Edge()' is implicitly deleted because the default definition would be ill-formed:
struct Edge {
^
0_0_20284237_18019.cpp:7:8: error: uninitialized reference member in 'struct Edge'
0_0_20284237_18019.cpp:8:2: note: 'int& Edge::nbsp' should be initialized
int to;
^
0_0_20284237_18019.cpp: In function 'bool cmp(Edge, Edge)':
0_0_20284237_18019.cpp:14:2: error: 'nbsp' was not declared in this scope
return a.lengh < b.lengh;
^
0_0_20284237_18019.cpp: In function 'void creatlist()':
0_0_20284237_18019.cpp:21:2: error: 'nbsp' was not declared in this scope
for (int i = 1; i <= n; i++)
^
0_0_20284237_18019.cpp:23:71: error: 'i' was not declared in this scope
scanf("%d%d%d", &edge[i].to, &edge[i].next, &edge[i].lengh);
^
0_0_20284237_18019.cpp: In function 'int ufind(int)':
0_0_20284237_18019.cpp:29:2: error: 'nbsp' was not declared in this scope
int a = k, b;
^
0_0_20284237_18019.cpp: In function 'int kruskal(int, int)':
0_0_20284237_18019.cpp:42:2: error: 'nbsp' was not declared in this scope
memset(pre, -1, sizeof(pre));
^
0_0_20284237_18019.cpp:46:65: error: 'i' was not declared in this scope
to = ufind(edge[i].to);
^
0_0_20284237_18019.cpp:53:97: error: break statement not within loop or switch
break;
^
0_0_20284237_18019.cpp: In function 'int main()':
0_0_20284237_18019.cpp:60:2: error: 'nbsp' was not declared in this scope
while (scanf("%d%d", &m, &n),n||m)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_20284237_18019.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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]':
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Edge*; _Compare = bool (*)(Edge, Edge)]'
0_0_20284237_18019.cpp:64:81: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:17: error: use of deleted function 'Edge& Edge::operator=(Edge&&)'
*__first = _GLIBCXX_MOVE(__val);
^
0_0_20284237_18019.cpp:7:8: note: 'Edge& Edge::operator=(Edge&&)' is implicitly deleted because the default definition would be ill-formed:
struct Edge {
^
0_0_20284237_18019.cpp:7:8: error: non-static reference member 'int& Edge::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_20284237_18019.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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]':
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
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 = Edge*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Edge*; _Compare = bool (*)(Edge, Edge)]'
0_0_20284237_18019.cpp:64:81: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:244:17: error: use of deleted function 'Edge& Edge::operator=(Edge&&)'
*__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 = Edge*; _Distance = long long int; _Tp = Edge; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]':
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
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 = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge, Edge)>]'
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 _RandomAccessI
|