This commit is contained in:
Tančáková 2024-03-22 09:14:57 +01:00
parent 69cac7b871
commit fa77ef472f

View File

@ -60,9 +60,10 @@ int main() {
struct Student students[MAX_STUDENTS]; struct Student students[MAX_STUDENTS];
int count = read_and_sum_votes(students, MAX_STUDENTS); int count = read_and_sum_votes(students, MAX_STUDENTS);
// Ak neexistujú žiadne údaje, vypíšeme chybovú správu
if (count == 0) { if (count == 0) {
printf("Nepodarilo nacitat nic\n"); printf("Nepodarilo nacitat nic\n");
return 1; return 0;
} }
// Triedenie študentov // Triedenie študentov