fvdsavs
This commit is contained in:
parent
5ae23bc3db
commit
70632868b3
@ -35,7 +35,7 @@ int main() {
|
||||
while (fgets(line, LINE_SIZE, stdin) != NULL && line[0] != '\n') {
|
||||
if (!is_valid_number(line)) {
|
||||
fprintf(stderr, "Nepodarilo sa nacitat polynom na %d mieste.\n", n + 1);
|
||||
return 0; // Exit immediately on error but return 0
|
||||
continue; // Continue to allow the program to finish
|
||||
}
|
||||
coeffs[n++] = strtod(line, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user