From b07dd7c0a04e0487be97186a319c25b723e30528 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 21 Mar 2024 16:59:11 +0100 Subject: [PATCH] Initialization --- cv5/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cv5/program.c b/cv5/program.c index 3c66a1a..b517c01 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -46,8 +46,7 @@ int main() { if (sscanf(line, "%d %[^\n]", &votes, name) != 2) { // error, input was not in expected format // print error message and exit - fprintf(stderr, "Error: invalid input format\n"); - return 1; + break; } // check if this student already exists