From a644b3042f564f39ec27adb25fa4a565a4f4a3b5 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 14:21:23 +0100 Subject: [PATCH] ASD --- du2/program | Bin 5630 -> 5630 bytes du2/program.c | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/du2/program b/du2/program index 9a7a3c60e7a8913ce573cd56e2df9bfcf8ecc569..17b913e7edbe5fc9312645f0dfa76aa9123edbeb 100755 GIT binary patch delta 167 zcmeyT{ZD&C1*3=^!;Rn)FM2l^zmj&I<5t?qSqno_v@^Pk-CL|NlE%R30!e zFf{K0Q;el?-61Lh-7P9FfP$SNEh616Dk4BNZ-Cs%qOA6^FH8Ub{|{6Rl4mFtJkFvr zrHzH-1tZX?mr;}RSTz_APoBf;8(A}c)0w~xS(jqchl+|A9bu&;NB*IWCc$`ILN*fEu z3l^Z}ml=}_Sv44sO`gSS&e%8k606?kzpUMi{O*iErH*_YtxQh5tjx}vr?XGwW^~`I IDSVX)09fZdIsgCw diff --git a/du2/program.c b/du2/program.c index ac327e9..3ce6af8 100644 --- a/du2/program.c +++ b/du2/program.c @@ -3,7 +3,7 @@ int main(){ int results[VELKOST_POLA]; - int max = results[0]; + int max; int i = 0; int first; int a = 0; @@ -12,6 +12,7 @@ int main(){ int r = scanf("%d",&value); if (r == 1){ results[i] = value; + max = results[0]; if(max < results[i]){ max = results[i]; first = i + 1;