Timeout core dump error using fgets
Please run my code with input: hello Im not really sure what the error means, my code was working fine until i switched the scanf() function for fgets() to be able to read in a full line of code with spaces, so the issue could be my ignorance on the fgets() function, however i implemented it per the tutorial here. Any help would be appreciated. https://www-geeksforgeeks-org.cdn.ampproject.org/v/s/www.geeksforgeeks.org/taking-string-input-space-c-3-different-methods/amp/?amp_js_v=a3&_gsa=1&usqp=mq331AQFKAGwASA%3D#aoh=15993125101457&csi=1&referrer=https%3A%2F%2Fwww.google.com&_tf=From%20%251%24s&share=https%3A%2F%2Fwww.geeksforgeeks.org%2Ftaking-string-input-space-c-3-different-methods%2F https://code.sololearn.com/cgF8O5edf7k6/?ref=app