0_0_18298869_17632.cpp: In function 'node check(int, int, int)':
0_0_18298869_17632.cpp:131:44: error: no matching function for call to 'merge(node, node)'
else return merge(check(lson), check(rson));
^
0_0_18298869_17632.cpp:131:44: note: candidates are:
0_0_18298869_17632.cpp:92:6: note: node merge(node&, node&)
node merge(node& lc, node& rc)
^
0_0_18298869_17632.cpp:92:6: note: no known conversion for argument 1 from 'node' to 'node&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_18298869_17632.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template argument deduction/substitution failed:
0_0_18298869_17632.cpp:131:44: note: candidate expects 6 arguments, 2 provided
else return merge(check(lson), check(rson));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_18298869_17632.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template argument deduction/substitution failed:
0_0_18298869_17632.cpp:131:44: note: candidate expects 5 arguments, 2 provided
else return merge(check(lson), check(rson));
^
0_0_18298869_17632.cpp: In function 'int CHECK(int, int)':
0_0_18298869_17632.cpp:174:34: error: no matching function for call to 'merge(node, node&)'
lft = merge(check(1, 1, n), lft);
^
0_0_18298869_17632.cpp:174:34: note: candidates are:
0_0_18298869_17632.cpp:92:6: note: node merge(node&, node&)
node merge(node& lc, node& rc)
^
0_0_18298869_17632.cpp:92:6: note: no known conversion for argument 1 from 'node' to 'node&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_18298869_17632.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template argument deduction/substitution failed:
0_0_18298869_17632.cpp:174:34: note: candidate expects 6 arguments, 2 provided
lft = merge(check(1, 1, n), lft);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_18298869_17632.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template argument deduction/substitution failed:
0_0_18298869_17632.cpp:174:34: note: candidate expects 5 arguments, 2 provided
lft = merge(check(1, 1, n), lft);
^
0_0_18298869_17632.cpp:179:34: error: no matching function for call to 'merge(node, node&)'
rgt = merge(check(1, 1, n), rgt);
^
0_0_18298869_17632.cpp:179:34: note: candidates are:
0_0_18298869_17632.cpp:92:6: note: node merge(node&, node&)
node merge(node& lc, node& rc)
^
0_0_18298869_17632.cpp:92:6: note: no known conversion for argument 1 from 'node' to 'node&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_18298869_17632.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template argument deduction/substitution failed:
0_0_18298869_17632.cpp:179:34: note: candidate expects 6 arguments, 2 provided
rgt = merge(check(1, 1, n), rgt);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_18298869_17632.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template argument deduction/substitution failed:
0_0_18298869_17632.cpp:179:34: note: candidate expects 5 arguments, 2 provided
rgt = merge(check(1, 1, n), rgt);
^
|