From c5aa70da6ead975c0fb8da4477ef182b4bf0e254 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 15:19:54 +0100 Subject: [PATCH] ASD --- du2/program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/du2/program.c b/du2/program.c index 2ab1a82..aec4518 100644 --- a/du2/program.c +++ b/du2/program.c @@ -11,6 +11,8 @@ int main(){ int value = 0; int r = scanf("%d",&value); if (r == 1){ + if(r == EOF) + continue; results[i] = value; if(max < results[i]){ max = results[i];