diff --git a/du2/program.c b/du2/program.c index 2ee0a14..33b9364 100644 --- a/du2/program.c +++ b/du2/program.c @@ -9,7 +9,7 @@ int main(){ int pole[VELKOST_POLA]; memset(pole, 0, VELKOST_POLA * sizeof(int)); int max_hodnota = 0; - //int max_hrac = 0; + int max_hrac = 0; int value = 0; int r = 0; int najlepsi[VELKOST_POLA]; @@ -25,16 +25,16 @@ int main(){ if(value >= max_hodnota){ max_hodnota = value; - najlepsi[k] = i; - k++; + max_hrac = i; } } else{ break; } } - for(int i=0; i