Sir, i tried this question but i'm getting segmentation fault

please check my code-> https://ide.codingblocks.com/s/467311

hello @chandreshmaurya

check now->

sir yha pe ‘m’ ka order 10^5 hai phir apn use ‘long long int’ se kyo update kar rhe hain?

kyunki hum i*i kar rahe hai , jo ki 10^10 tak ja sakta hai aur isko int me nahi store kar sakte isiliye long long use kiya

ohkay sir, Thank you

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.