First test case not getting passed provided example is working

First test case not getting passed provided example is working

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.