Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

sort死循环是自己的时限比较函数的时候没有按照STL库的要求

Posted by kicc at 2006-04-21 17:06:29 on Problem 1186
In Reply To:经过确认,是VC6.0的sort会死循环。 Posted by:kexiaofeng at 2006-04-21 14:17:49
Several algorithms use a predicate that must impose a strict weak ordering on pairs of elements from a sequence. For the predicate pr(X, Y):

"strict" means that pr(X, X) is false 
"weak" means that X and Y have an equivalent ordering if !pr(X, Y) && !pr(Y, X) (X == Y need not be defined) 
"ordering" means that pr(X, Y) && pr(Y, Z) implies pr(X, Z) 

From MSDN

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator