Initialisation of denojm

I don’t understand why denom had to be declared as " ll denom = 1ll;" and not “ll denom = 1;”

@aiman.mumtaz
Because long long denom = 1 means that you are initialising an int value to to denom. LL ensures that the value is of type long long.
for better clarity.
try to run this code snippet
long long a = 5;
cout<<max(a,0);
this code would give an array because in max function you are comparing 0 (int value) to a (long long) .
to avoid these, we use LL.
i.e cout<<max(a,0LL);