This commit is contained in:
mr314ot 2025-10-09 18:59:22 +02:00
parent 51aef6edb2
commit 8010ecc6cb

View File

@ -43,9 +43,9 @@ int read_pizza(struct pizza *item) {
// porovnanie dvoch položiek
int greater(struct pizza *a, struct pizza *b) {
if (a->prize > b->prize)
if (a->price > b->price)
return 1;
if (a->prize < b->prize)
if (a->price < b->price)
return 0;
return strcmp(a->name, b->name) > 0;
}