why am i getting error in this code https://ide.codingblocks.com/s/210932
Getting error in the code
@singh.vishen09
Code is fine
Use long long not int
j = i*i makes j negative for i close to 10^5 due to integer overflow issue
If your doubt is resolved please close it.