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_36072178_1011.cpp: In function 'int main()':
0_0_36072178_1011.cpp:75:32: error: no matching function for call to 'lower_bound(ll [90000], ll*)'
   l[i] = lower_bound(a, a + cnt) - a + 1;
                                ^
0_0_36072178_1011.cpp:75:32: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 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_36072178_1011.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note:   template argument deduction/substitution failed:
0_0_36072178_1011.cpp:75:32: note:   candidate expects 3 arguments, 2 provided
   l[i] = lower_bound(a, a + cnt) - a + 1;
                                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_36072178_1011.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note:   template argument deduction/substitution failed:
0_0_36072178_1011.cpp:75:32: note:   candidate expects 4 arguments, 2 provided
   l[i] = lower_bound(a, a + cnt) - a + 1;
                                ^
0_0_36072178_1011.cpp:76:32: error: no matching function for call to 'lower_bound(ll [90000], ll*)'
   r[i] = lower_bound(a, a + cnt) - a + 1;
                                ^
0_0_36072178_1011.cpp:76:32: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 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_36072178_1011.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note:   template argument deduction/substitution failed:
0_0_36072178_1011.cpp:76:32: note:   candidate expects 3 arguments, 2 provided
   r[i] = lower_bound(a, a + cnt) - a + 1;
                                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_36072178_1011.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note:   template argument deduction/substitution failed:
0_0_36072178_1011.cpp:76:32: note:   candidate expects 4 arguments, 2 provided
   r[i] = lower_bound(a, a + cnt) - a + 1;
                                ^
0_0_36072178_1011.cpp:77:35: error: no matching function for call to 'lower_bound(ll [90000], ll*)'
   date[i] = lower_bound(a, a + cnt) - a;
                                   ^
0_0_36072178_1011.cpp:77:35: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 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_36072178_1011.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note:   template argument deduction/substitution failed:
0_0_36072178_1011.cpp:77:35: note:   candidate expects 3 arguments, 2 provided
   date[i] = lower_bound(a, a + cnt) - a;
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_36072178_1011.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note:   template argument deduction/substitution failed:
0_0_36072178_1011.cpp:77:35: note:   candidate expects 4 arguments, 2 provided
   date[i] = lower_bound(a, a + cnt) - 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-29 21:24:33, Gzip enabled