This commit is contained in:
Weber 2024-03-22 00:57:05 +00:00
parent 90d7159ce6
commit 334f114ad7

View File

@ -38,11 +38,11 @@ int main() {
char* end = NULL;
int votes = strtol(line, &end, 10);
if (votes == 0) {
fprintf(stderr, "Chyba\n");
fprintf(stderr, "Nepodarilo␣nacitat␣nic\n");
break;
}
if (*end != ' ') {
fprintf(stderr, "Chyba\n");
fprintf(stderr, "Nepodarilo␣nacitat␣nic\n");
break;
}
char name[SIZE];