Runtime error in not so easy math

#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
int arr[]={2,3,5,7,11,13,17,19},i,j;
while(t–)
{
long long int ans=0;
long long int n;
cin>>n;
long long int ss=(1<<8)-1;

         for(i=0;i<=ss;i++)
         {
            long long int denom=1;
            long long int sb=__builtin_popcount(i);

            for(j=0;j<=7;j++)
            {
                if(i&(1<<j))
                {
                denom=denom*arr[j];
                }
            }
            if(sb&1)
            {
                ans+=n/denom;
            }
            else
            {
                ans-=n/denom;
            }
         }

cout<<ans<<endl;
}

return 0;
}

this is my code its giving run time error can anyone help me with this issue.

@saiKDr
start your outer for loop from i=1 not from i=0,
for(int i=1;i<=ss;i++)