This commit is contained in:
Michal Utľák 2024-04-22 17:35:55 +02:00
parent f43431e8fc
commit cd76734304

View File

@ -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) {