0_0_36166870_28280.cpp: In function 'void down(int)':
0_0_36166870_28280.cpp:155:13: error: 'n' was not declared in this scope
if(x*2<=n && a[u]>a[x*2])u=x*2;
^
0_0_36166870_28280.cpp:155:18: error: 'a' was not declared in this scope
if(x*2<=n && a[u]>a[x*2])u=x*2;
^
0_0_36166870_28280.cpp:156:15: error: 'n' was not declared in this scope
if(x*2+1<=n && a[u]>a[x*2+1])u=x*2+1;
^
0_0_36166870_28280.cpp:156:20: error: 'a' was not declared in this scope
if(x*2+1<=n && a[u]>a[x*2+1])u=x*2+1;
^
0_0_36166870_28280.cpp:158:14: error: 'a' was not declared in this scope
swap(a[x],a[u]);
^
0_0_36166870_28280.cpp: In function 'void up(int)':
0_0_36166870_28280.cpp:165:18: error: 'h' was not declared in this scope
while(x/2 && h[x/2]>h[x]){
^
0_0_36166870_28280.cpp:166:19: error: no matching function for call to 'swap(int&, int)'
swap(x,x/2);
^
0_0_36166870_28280.cpp:166:19: note: candidates are:
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_36166870_28280.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:166:5: note: void std::swap(_Tp&, _Tp&) [with _Tp = int]
swap(_Tp& __a, _Tp& __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:166:5: note: no known conversion for argument 2 from 'int' to 'int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:185:5: note: template<class _Tp, long long unsigned int _Nm> void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:185:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types '_Tp [_Nm]' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64: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++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_36166870_28280.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:254:5: note: template<class _T1, class _T2> void std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)
swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:254:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types 'std::pair<_T1, _T2>' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
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_36166870_28280.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note: template<class _CharT, class _Traits, class _Alloc> void std::swap(std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>&)
swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36166870_28280.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1559:5: note: template<class _Tp, class _Alloc> void std::swap(std::vector<_Tp, _Alloc>&, std::vector<_Tp, _Alloc>&)
swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1559:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36166870_28280.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:112:3: note: void std::swap(std::_Bit_reference, std::_Bit_reference)
swap(_Bit_reference __x, _Bit_reference __y) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:112:3: note: no known conversion for argument 1 from 'int' to 'std::_Bit_reference'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:120:3: note: void std::swap(std::_Bit_reference, bool&)
swap(_Bit_reference __x, bool& __y) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:120:3: note: no known conversion for argument 1 from 'int' to 'std::_Bit_reference'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:128:3: note: void std::swap(bool&, std::_Bit_reference)
swap(bool& __x, _Bit_reference __y) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:128:3: note: no known conversion for argument 1 from 'int' to 'bool&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
from 0_0_36166870_28280.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:1018:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> void std::swap(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:1018:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
from 0_0_36166870_28280.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:845:5: note: template<class _Key, class _Compare, class _Alloc> void std::swap(std::set<_Key, _Compare, _Alloc>&, std::set<_Key, _Compare, _Alloc>&)
swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:845:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types 'std::set<_Key, _Compare, _Alloc>' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
from 0_0_36166870_28280.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:829:5: note: template<class _Key, class _Compare, class _Alloc> void std::swap(std::multiset<_Key, _Compare, _Alloc>&, std::multiset<_Key, _Compare, _Alloc>&)
swap(multiset<_Key, _Compare, _Alloc>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:829:5: note: template argument deduction/substitution failed:
0_0_36166870_28280.cpp:166:19: note: mismatched types 'std::multiset<_Key, _Compare, _Alloc>' and 'int'
swap(x,x/2);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_36166870_28280.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:20
|