Problem: https://hack.codingblocks.com/contests/c/547/975
Code:
https://ide.codingblocks.com/s/51399
Getting WA in 1 test case
Question constrains says that the co-ordinates can be negative and Your code does not takes care for such condition.
consider example of 4 co-ordinates:
(1,1)
(2,4)
(5,2)
(-4,4)
here the answer would be: 3 but your code gives different answer.
Hope so this helps 