I added this piece of code to my CPP program and for some reason, it crashes
const double step = 1/150;
vector<int> layerSizes{2,3,2};
Network network{layerSizes, 0.0000001,0.1};
for(int i = step/2; i<1; i++){
for(int j = step/2; j<1; j++){
vector<int> output = network.process({i,j});
if(output[0]> output[1]){
DrawRectangle(i*screenWidth, j*screenHeight,step*screenWidth, step*screenHeight, Color{84, 165, 224, 128});
}else{
DrawRectangle(i*screenWidth, j*screenHeight,step*screenWidth, step*screenHeight, Color{254, 78, 90, 128});
}
}
}
my program and gives out this error:
if I remove the for loop it works perfectly fine, does anyone know why?
