Doubt in my code for Activity Selection Problem

I am getting the correct output, but I didn’t pass the test case 0. I want to know where I’m doing wrong in my code.

Crosscheck with this case:
1
25
37 45
75 76
76 91
64 78
10 53
13 24
94 99
89 92
82 84
77 87
65 73
55 77
43 99
32 37
90 95
30 53
97 99
77 91
93 99
13 64
26 51
7 39
31 50
11 14
33 79

The output must be 8
It is formed by picking activities:
32 37
37 45
65 73
75 76
82 84
89 92
97 99

Refer this https://ide.codingblocks.com/s/283247

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.