121
This commit is contained in:
parent
f2064443b2
commit
c57ab4e5bd
@ -42,7 +42,10 @@ int main() {
|
||||
|
||||
// Výpis prijatých a neprijatých študentov
|
||||
int max_students;
|
||||
scanf("%d", &max_students);
|
||||
if (scanf("%d\n", &max_students) != 1) {
|
||||
fprintf(stderr, "Error reading the maximum number of students\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("Prijati studenti:\n");
|
||||
for (int i = 0; i < max_students && i < pocet_mien_v_poli; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user