12
This commit is contained in:
parent
6185db179b
commit
f7323ac3c7
BIN
du4/program
BIN
du4/program
Binary file not shown.
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user