can anyone tell me why i am getting error while runtime
Code:Section defGeometry::formSection( Side Section1,Section Section2,int N1,int N2,int N4,int NumberOfPoints )
{defFile defG;
//std::vector Sections FinalSection;
int NoOfPoints,i,j,k;
N1=2;
N2=2;
j=0;
k=0;
NoOfPoints=2*N1;
struct Section defGeomSecTemp;
struct point x;
double defGeompt[3];
for(i=0;i<N4;i++)
{
for(j=NumberOfPoints-N2;j>=NumberOfPoints-N2;j++)
{
x.pt[0]=Section1.Sections[N4].Points[NumberOfPoints-N2].pt[0];
}
}
return Section3;
};
error
debug assertion failed!
vector subscript out of range