Debugging in Visual studio leads to this error: "Expression: file_name != nullptr". It claims the error is in line 30 but there seems to be nothing related.
Here is line 30 referenced by the error:
unsigned int maxCarbon = 0; // Initialise with minimum value in unsigned type.
Here is the line I suspect there to be an error with:
sscanf(composition.c_str(), "C%dH%d", &cCnt, &hCnt);
I have no variable named file_name
.