This commit is contained in:
Roman Khaliavka 2025-02-25 17:34:04 +00:00
parent 1930544378
commit 1da7ceae0c

View File

@ -15,7 +15,7 @@ int main() {
while (scanf("%d", &value) == 1 && value > 0) {
if (index >= ARRAY_SIZE) {
fprintf(stderr, "Chyba: Príliš veľa súťažiacich!\n");
return 1;
return 0;
}
results[index] = value;
if (value > max_value) {