Error while using long long int

For this program since the constraints are big , i assigned the variables to long long int , but when executing the program , the output is a very large random number.

But when i change the variables to int , the output is correct.

why is this so ? thanks

hello @kr7hari9

if it is working for int then it will also work for long long.

pls share ur code that is not working , i will check

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.