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;