[Solved] Gcc/G++ doesn’t give correct results when compiling more than 3 times
Ok, i figured it out. Thanks @TartanLlama for the last comment it makes total sense. So the “core error” (the thing that i wanted to know) was in here: float /* */ soma_transmissor, soma_recetor; for(i=0;i<n;i++){ soma_transmissor+=distobj[i]; /* */ } for(i=n-1,k=n;i>=0;i–){ soma_recetor+=distobj[i+1]; /* */ } I just needed to inicialize soma_transmissor and soma_recetor. Now if anyone … Read more