RunErrror in Code

Sir, If i am going to print the prime numbers from 1 to 12 digits integers in an array it gives me run time error, am using long long int this also not working
code:
using namespace std;
#include
void PrimeFactor(long long int p[],long long int n)
{

for(long long int i=3;i<=n;i+=2)
p[i]=1;

for(long long int i=3;i<=n;i+=2)
{
	
	if(p[i]==1)
	for(long long int j=i*i;j<=n;j=i+j)
	p[j]=0;
	
}
p[1]=p[0]=0;
p[2]=1;

}
int main()
{
long long int n=600142675432;

long long int p[n+1];

PrimeFactor(p,n);

}

hello @n.nishchaya2000
u are getting run error because u are declaring a very large size array.
decrease the value of n … keep it near around 10^6

thats what i am asking is there any option to access such a large array

no we can declare maximum array of size 10^8 (boolean type and that too when we declare it as global).
no other option