Driver code
public static void main ( String [ ] args ) { int X = 0 ; int Y = 0 ; int R = 5 ; int P = 5 ; int Q = 0 ; pair arr [ ] = { new pair ( 2 , 3 ) , new pair ( 5 , 6 ) , new pair ( - 1 , 4 ) , new pair ( 5 , 5 ) } ; System . out . print ( getPointsIns ( X , Y , R , P , Q , arr ) ) ; } }