Activity Selection Problem

Forget all the porblem…
i am asking my doubt related to pairs concept…

i just want to create a pair and sort…it. thats only…and i wrote the code (given link below)…and compiler gives error…
can u please correct my code regardless the problem…to its executable form .

code link…

regards.