Why my code is giving compilation error. It says ‘pair’ was not declared in this scope.
Activity selection problem
please include, use namespace std before the compare function
ohh sorry my bad, I corrected it but no test case passed.
even if finish time is equal to start time you can start the activity you werent considering this case
1 Like
Thank you for help!!!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.