Showing WA for one test case in birthday paradox

my code https://ide.codingblocks.com/#/s/27857

ques link https://hack.codingblocks.com/contests/c/528/827

having the same problem.