From 4a873fe7e422ff74f1734b78153262b3fd4817b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Gejdo=C5=A1?= Date: Wed, 11 Mar 2026 13:27:41 +0000 Subject: [PATCH] ? --- du2/program.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/du2/program.c b/du2/program.c index c4d5e4a..f1c0d7f 100644 --- a/du2/program.c +++ b/du2/program.c @@ -34,10 +34,6 @@ int main() { char name[SIZE]; int velkost_zoznamu = 0; //pocet studentov - if ((fgets (vstup, SIZE, stdin) != NULL) && (sscanf(vstup, "%d %[^\n]", &hlasy, name) != 2)) { - printf("Nepodarilo sa nacitat nic\n"); - return 0; - } while (fgets (vstup, SIZE, stdin) != NULL) { //citat input, kontrola ci existuje, pridat hlasy existujucemu zaznamu if (sscanf(vstup, "%d %[^\n]", &hlasy, name) != 2) {