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)) {
|
while (fgets(line, SIZE, stdin)) {
|
||||||
char* end = NULL;
|
char* end = NULL;
|
||||||
int votes = strtol(line, &end, 10);
|
int votes = strtol(line, &end, 10);
|
||||||
|
continue;
|
||||||
if (votes <= 0 || *end != ' '){
|
|
||||||
printf("Chyba: Nespravny format vstupu!\n");
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char name[SIZE];
|
char name[SIZE];
|
||||||
|
Loading…
Reference in New Issue
Block a user