Driver code
int main ( ) { int X = 0 ; int Y = 0 ; int R = 5 ; int P = 5 ; int Q = 0 ; vector < pair < int , int > > arr = { make_pair ( 2 , 3 ) , make_pair ( 5 , 6 ) , make_pair ( -1 , 4 ) , make_pair ( 5 , 5 ) } ; cout << getPointsIns ( X , Y , R , P , Q , arr ) ; return 0 ; }