This commit is contained in:
Weber 2024-04-24 10:12:41 +00:00
parent b77f8970ae
commit 1fe4c745c4

View File

@ -9,7 +9,7 @@ int main() {
scanf("%d", &maxStudents);
if (maxStudents <= 0) {
printf("Nespravny vstup");
printf("Nespravny vstup\n");
return 1;
}
@ -24,11 +24,6 @@ int main() {
strcpy(names[numStudents], line);
numStudents++;
if (numStudents >= MAX_STUDENTS) {
printf("Príliš veľa študentov. Zvážte navýšenie MAX_STUDENTS.\n");
return 1;
}
}
if (numStudents == 0) {
printf("Ziadne prihlášky\n");