Input Output doubt

Can you pls tell me… How do we input pairs in cpp.
like in DEFKIN problem spoj…

We need to take input x and Y coordinate of the towers… How do I take input it…!!

You can use pair <int,int> as well as two arrays for x coordinates and y coordinates respectively .
For area to be maximum , you should find the maximum difference in x as well as in y then your answer will be delta x *delta y
You can find my code here , hope it will help you understand
ide.codingblocks.com/#/s/15777