From f9a55fc11f391a7e6c286f240b1eaba95a1576ee Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 7 Apr 2022 15:53:25 +0200 Subject: [PATCH] ds --- du5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index c0d9216..500cf60 100644 --- a/du5/program.c +++ b/du5/program.c @@ -70,6 +70,6 @@ int compare(const void* p1, const void* p2){ struct student* s2 = (struct student*)p2; // s1->votes je počet hlasov // s1->name je meno študenta - return (s2->votes)-(s1->votes); + return (s2->votes)-(s1->votes)-1; }