Hello, is this for loop possible? Im trying to get each new value for for(a;a<sum;a++) sum variable. After countless tries i am stuck and don't think it's possible to change that... When sum = sum + laikai[i+1]; exists compiler CMD window is not responding and checking for solution... Help would be appreciated! :)
for(int i=0;i<zaidejai;i++) {
for(a;a<sum;a++) {
if(zaide[a] > 0) {
daug = daug + zaide[a];
}
a += 1;
}
if(daug > temp) {
norm = i;
temp = daug;
}
//line below makes compiler stop if i disable this line everything works..
sum = sum + laikai[i+1];
}