F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_24947173_17611.cpp: In function 'int Get(int&)':
0_0_24947173_17611.cpp:34:36: error: no matching function for call to 'merge(int&, int&)'
  rt = merge(node[rt].ls,node[rt].rs);
                                    ^
0_0_24947173_17611.cpp:34:36: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:34:36: note:   candidate expects 5 arguments, 2 provided
  rt = merge(node[rt].ls,node[rt].rs);
                                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:34:36: note:   candidate expects 6 arguments, 2 provided
  rt = merge(node[rt].ls,node[rt].rs);
                                    ^
0_0_24947173_17611.cpp: In function 'void Insert(int&, int)':
0_0_24947173_17611.cpp:42:19: error: no matching function for call to 'merge(int&, int&)'
  rt = merge(rt,cnt);
                   ^
0_0_24947173_17611.cpp:42:19: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:42:19: note:   candidate expects 5 arguments, 2 provided
  rt = merge(rt,cnt);
                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:42:19: note:   candidate expects 6 arguments, 2 provided
  rt = merge(rt,cnt);
                   ^
0_0_24947173_17611.cpp: In function 'void Work()':
0_0_24947173_17611.cpp:70:18: error: no matching function for call to 'merge(int&, int&)'
     A = merge(A,B);
                  ^
0_0_24947173_17611.cpp:70:18: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:70:18: note:   candidate expects 5 arguments, 2 provided
     A = merge(A,B);
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:70:18: note:   candidate expects 6 arguments, 2 provided
     A = merge(A,B);
                  ^
0_0_24947173_17611.cpp:74:22: error: no matching function for call to 'merge(int&, int&)'
    else B = merge(B,A);
                      ^
0_0_24947173_17611.cpp:74:22: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:74:22: note:   candidate expects 5 arguments, 2 provided
    else B = merge(B,A);
                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_24947173_17611.cpp:4:
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_24947173_17611.cpp:74:22: note:   candidate expects 6 arguments, 2 provided
    else B = merge(B,A);
                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 14:38:17, Gzip enabled