From 910fa65ef792091aa9ba4e9d02dd199f3a03f7c9 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 9 Apr 2020 23:35:42 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu5/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 8d27ae6..112d9df 100644 --- a/du5/program.c +++ b/du5/program.c @@ -45,7 +45,11 @@ int main(){ } sscanf(str,"%s %[^\t\n]",digit,name); if(isalpha(digit[0])!=0){ - break; + if(c==0){ + printf("Nepodarilo nacitat nic\n"); + return 0; + } + break; } int score = atoi(digit); PersonList[c].score = score;