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_37041265_29735.cpp: In function 'int main()':
0_0_37041265_29735.cpp:32:47: error: no matching function for call to 'upper_bound(int&)'
     multiset<int>::iterator it = upper_bound(x);
                                               ^
0_0_37041265_29735.cpp:32:47: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_37041265_29735.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2079:5: note: template<class _FIter, class _Tp> _FIter std::upper_bound(_FIter, _FIter, const _Tp&)
     upper_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2079:5: note:   template argument deduction/substitution failed:
0_0_37041265_29735.cpp:32:47: note:   candidate expects 3 arguments, 1 provided
     multiset<int>::iterator it = upper_bound(x);
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_37041265_29735.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2111:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::upper_bound(_FIter, _FIter, const _Tp&, _Compare)
     upper_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2111:5: note:   template argument deduction/substitution failed:
0_0_37041265_29735.cpp:32:47: note:   candidate expects 4 arguments, 1 provided
     multiset<int>::iterator it = upper_bound(x);
                                               ^


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-09-29 09:28:35, Gzip enabled