int startin [ ] = { 1 , 2 , 4 } ; starting time of jobs int endin [ ] = { 2 , 3 , 5 } ; ending times of jobs
int n = sizeof ( startin ) / sizeof ( startin [ 0 ] ) ; cout << checkJobs ( startin , endin , n ) ; return 0 ; }