I think there are errors in the C intermidiate coarse
https://www.sololearn.com/learn/courses/c-intermediate/tiy/974156312?returnUrl=/learn/courses/c-intermediate/lesson/962866126?p=3 ...................................................... Working With Files one of several errors ...................................................... #include <stdio.h> int main() { FILE *fptr; int c, stock; char buffer[200], item[10]; float price; /* myfile.txt: Inventory\n100 Widget 0.29\nEnd of List */ fptr = fopen("myfile.txt", "r"); fgets(buffer, 20, fptr); /* read a line */ printf("%s\n", buffer); fscanf(fptr, "%d%s%f", &stock, item, &price); /* read data */ printf("%d %s %4.2f\n", stock, item, price); while ((c = getc(fptr)) != EOF) /* read the rest of the file */ printf("%c", c); fclose(fptr); return 0; } ........................................................... timeout: the monitored command dumped core ./Playground/runner.sh: line 110: 12 Segmentation fault timeout "$runtime" "$output" - < "/usercode/inputFile"