Jigu-i trusts std::sort completely. Writing a fast sort by hand takes more than 20 lines, but std::sort is one line. Using it on an array of structs needs extra work such as defining comparison operators, but that drawback is nothing next to writing a sort from scratch.
So Jigu-i codes while shouting S.M.T. every day. One day the program came back Wrong Answer for no clear reason. The task is simple.
There are N points in the region x≥0, y≥0 of the plane. Sort them so that for every i<j, the i-th point (xi,yi) and the j-th point (xj,yj) satisfy xiyj≤xjyi.
Jigu-i treated l=(lx,ly) as coming before r=(rx,ry) when lxry<lyrx, then called std::sort. The result was still wrong. The code is only std::sort, and feeding data by hand never produced a counterexample.
Print a counterexample for Jigu-i. The required output is unique. N is 2, and the two points are (1,0) then (0,1).