This commit is contained in:
Denis Landa 2025-03-21 15:13:14 +01:00
parent 6185db179b
commit f7323ac3c7
2 changed files with 1 additions and 4 deletions

Binary file not shown.

View File

@ -39,10 +39,7 @@ int main() {
while (fgets(line, SIZE, stdin)) {
char* end = NULL;
int votes = strtol(line, &end, 10);
if (votes <= 0 || *end != ' '){
printf("Chyba: Nespravny format vstupu!\n");
continue;
continue;
}
char name[SIZE];