0_0_32191369_22953.cpp: In function 'void kruscal(int)':
0_0_32191369_22953.cpp:27:12: error: 'n' was not declared in this scope
per(i, 1, n)f[i] = i;
^
0_0_32191369_22953.cpp:2:35: note: in definition of macro 'per'
#define per(i,a,b) for(int i=a;i<=b;i++)
^
0_0_32191369_22953.cpp:28:21: error: 'n' was not declared in this scope
for (int i = 1;i < n;) {
^
0_0_32191369_22953.cpp:29:15: error: 'm' was not declared in this scope
if (Ecnt >= m)return;
^
0_0_32191369_22953.cpp:34:20: error: 'm' was not declared in this scope
if (Ecnt - 1 >= m)return;
^
0_0_32191369_22953.cpp:50:15: error: 'm' was not declared in this scope
per(i, Ecnt, m - 1) { ret += edge[i].w;ans[++Euse] = min(ans[Euse], ret); }
^
0_0_32191369_22953.cpp:2:35: note: in definition of macro 'per'
#define per(i,a,b) for(int i=a;i<=b;i++)
^
0_0_32191369_22953.cpp: At global scope:
0_0_32191369_22953.cpp:52:5: error: 'int ll' redeclared as different kind of symbol
int ll, rr;
^
0_0_32191369_22953.cpp:4:19: note: previous declaration 'typedef long long int ll'
typedef long long ll;
^
0_0_32191369_22953.cpp:64:16: error: expected ')' before 'x'
bool cmp2(edge x, edge y)
^
0_0_32191369_22953.cpp:64:24: error: expected ')' before 'y'
bool cmp2(edge x, edge y)
^
0_0_32191369_22953.cpp:64:25: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp2(edge x, edge y)
^
0_0_32191369_22953.cpp:65:1: error: expected ',' or ';' before '{' token
{
^
0_0_32191369_22953.cpp: In function 'int main()':
0_0_32191369_22953.cpp:108:8: error: expected unqualified-id before '=' token
ll = ancestor(e[i].a);
^
0_0_32191369_22953.cpp:112:14: error: expected primary-expression before ']' token
if (fa[ll] > fa[rr])
^
0_0_32191369_22953.cpp:114:21: error: expected primary-expression before ']' token
fa[rr] += fa[ll];
^
0_0_32191369_22953.cpp:115:11: error: expected primary-expression before ']' token
fa[ll] = rr;
^
0_0_32191369_22953.cpp:119:11: error: expected primary-expression before ']' token
fa[ll] += fa[rr];
^
0_0_32191369_22953.cpp:120:17: error: expected primary-expression before ';' token
fa[rr] = ll;
^
0_0_32191369_22953.cpp:146:8: error: expected unqualified-id before '=' token
ll = ancestor(e[i].a);
^
0_0_32191369_22953.cpp:150:14: error: expected primary-expression before ']' token
if (fa[ll] > fa[rr])
^
0_0_32191369_22953.cpp:152:21: error: expected primary-expression before ']' token
fa[rr] += fa[ll];
^
0_0_32191369_22953.cpp:153:11: error: expected primary-expression before ']' token
fa[ll] = rr;
^
0_0_32191369_22953.cpp:157:11: error: expected primary-expression before ']' token
fa[ll] += fa[rr];
^
0_0_32191369_22953.cpp:158:17: error: expected primary-expression before ';' token
fa[rr] = ll;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_32191369_22953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = edge*; _Iterator2 = edge*; _Compare = bool]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]'
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>]'
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>]'
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]'
0_0_32191369_22953.cpp:94:25: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: expression cannot be used as a function
{ return bool(_M_comp(*__it1, *__it2)); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = edge; _Iterator = edge*; _Compare = bool]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1827:34: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = edge*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<bool>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1855:46: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]'
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>]'
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>]'
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]'
0_0_32191369_22953.cpp:94:25: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:166:37: error: expression cannot be used as a function
{ return bool(_M_comp(__val, *__it)); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = edge*; _Value = edge; _Compare = bool]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:129:76: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = edge*; _Distance = long long int; _Tp = edge; _Compare = __gnu_cxx::__ops::_Iter_comp_val<bool>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:230:51: required from '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>]'
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>]'
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>]'
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>]'
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>]'
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>]'
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]'
0_0_32191369_22953.cpp:94:25: required from here
GCC4.9.2/
|