Out of range value of n

the range for n given in problem falls under category of double int but array of size double int is not getting declared
how to declare such a long array for binary search

Hi @soorya19k

You can use data type as long long int.

Hope it Helps.

it is showing wrong answer on using that too

Previously you didn’t provide your code and asked only for the data type to be used, and it is correct to use long long int. There might be a flaw with your logic. Provide the cb ide link of your code here.