From d6ef7c6b386a045d8c32779fd730a03edb73db3a Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Sat, 4 Mar 2023 13:23:07 +0100 Subject: [PATCH] . --- du2/program.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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