From e8c556221799502b1c259da8c5bac48e46ed8c32 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 21 Mar 2024 17:36:50 +0100 Subject: [PATCH] Initialization --- cv5/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cv5/program.c b/cv5/program.c index cd5c87e..0a0231b 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -46,10 +46,11 @@ int main() { char name[SIZE]; if (sscanf(line, "%d %[^\n]", &votes, name) != 2) { if (successful_lines >= 1){ - break; + continue; } else{ - printf("Nepodarilo nacitat nic"); + printf("Nepodarilo nacitat nic\n"); + break; } }