This commit is contained in:
Jana Kapalková 2026-03-12 19:00:17 +01:00
parent 1cf7630708
commit bac23add86

View File

@ -45,8 +45,8 @@ int main(void) {
students[i].votes += votes; students[i].votes += votes;
} }
if (count == 0) { if (count == 0) {
fprintf(stderr, "Chyba: ziaden platny zaznam.\n"); printf("Chyba: ziaden platny zaznam.\n");
return 1; return 0;
} }
qsort(students, count, sizeof(Student), cmp); qsort(students, count, sizeof(Student), cmp);
printf("Vysledky:\n"); printf("Vysledky:\n");