From 675f01409ccce09e08ecd3c72fb13d62ebf55cfd Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 10 Mar 2022 18:26:26 +0100 Subject: [PATCH] funguje --- du2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du2/program.c b/du2/program.c index f1755ad..ecb7548 100644 --- a/du2/program.c +++ b/du2/program.c @@ -20,7 +20,7 @@ int main(){ } pole[idx]=value; if (pole[idx] > max_hodnota){ - max_hodnota = pole[i]; + max_hodnota = pole[idx]; } idx++; value++;