Getting WA in 1 test case

Problem: https://hack.codingblocks.com/contests/c/547/975
Code:
https://ide.codingblocks.com/s/51399

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 :slight_smile: