From cd76734304097bd2e21bda3c71f5e607ac85b280 Mon Sep 17 00:00:00 2001 From: Michal Utlak Date: Mon, 22 Apr 2024 17:35:55 +0200 Subject: [PATCH] return 0 --- cv10/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv10/program.c b/cv10/program.c index 1ccc395..7d635ce 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -10,7 +10,7 @@ int main() { char prvy_input[100]; if (fgets(prvy_input, sizeof(prvy_input), stdin) == NULL || atoi(prvy_input) <= 0) { printf("Nespravny vstup\n"); - return 1; + return 0; } while (fgets(pole[pocet_studentov], sizeof(pole[pocet_studentov]), stdin) != NULL) {