×

# [closed] Educational Codeforces Round 43 Div 2 C. Nested Segments RE

 0 http://codeforces.com/contest/976/submission/37828287 Can someone Explain me RE on test 84. And reason why it is occurring ?? And any method to get rig of this ?? asked 02 May '18, 19:40 2.5k●1●5●16 accept rate: 10%

### The question has been closed for the following reason "The question is answered, right answer was accepted" by aryanc403 03 May '18, 05:06

 1 Your compare function does not obey the C++ standard for comparision functions. The function must return true if the first argument is strictly less than the second, and false otherwise. You can check the documentation for details. answered 03 May '18, 04:04 6★meooow ♦ 7.1k●7●18 accept rate: 48% Thanks. @meooow Got AC. By Just changing true to false in case of equal elements. Earlier I used to think that I can return anything in case of equal elements. But I was wrong. (03 May '18, 05:05)

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×682
×532
×239

question asked: 02 May '18, 19:40

question was seen: 190 times

last updated: 03 May '18, 05:06