newss
This commit is contained in:
parent
201ccc2d60
commit
d10bea4233
@ -13,7 +13,7 @@ int main() {
|
|||||||
int max_students;
|
int max_students;
|
||||||
if (scanf("%d", &max_students) != 1 || max_students <= 0) {
|
if (scanf("%d", &max_students) != 1 || max_students <= 0) {
|
||||||
puts("Nespravny vstup");
|
puts("Nespravny vstup");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char buffer[MAX_NAME_LEN];
|
char buffer[MAX_NAME_LEN];
|
||||||
@ -40,7 +40,7 @@ int main() {
|
|||||||
|
|
||||||
if (counter == 0) {
|
if (counter == 0) {
|
||||||
puts("Ziadne prihlasky");
|
puts("Ziadne prihlasky");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
qsort(names, counter, sizeof(char *), compare);
|
qsort(names, counter, sizeof(char *), compare);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user