Error: Conversion to non-scalar type requested
You can’t cast anything to a structure type. What I presume you meant to write is: But please don’t cast the return value of malloc() in a C program. Will work just fine and won’t hide #include bugs from you.